C++11 for Linux
By Josh,
All new projects created from the Leadwerks templates will work correctly out-of-the-box.
Your existing projects need a couple of new libraries added to them. The easiest way to do this is to open the CBP project file in a text editor. Find two chunks of text that look like this:
<Linker> <Add library="$(LeadwerksPath)/Library/Linux/Debug/Leadwerks.a" /> <Add library="dl" /> <Add library="openal" /> <Add library="GL" /> <Add library="GLU" /> <Add library="$(LeadwerksPath)/Library/Linux/libluajit.a" /> <Add library="../../libsteam_api.so" /> <Add library="X11" /> <Add library="Xext" /> <Add library="pthread" /> </Linker>
Add these two libraries to the list. Remember, this will occur twice in the file.
<Add library="Xrender" /> <Add library="Xft" />
Save the project file and you're ready to use C++11 features with Leadwerks on Linux.
- Read more...
- 0 comments
- 1,151 views