Code Blocks Help
-
- Posts: 288
- Joined: Wed Oct 29, 2008 12:07 pm
Code Blocks Help
How do you link two seperate source files in code blocks? The C++ book I am reading didn't cover Seperate Compilation very well and only told me how to link them via Unix command line. I have 2 source files and want to compile them together. Could anyone point me in the right direction? Thanks in advance .
C::B compiles all the files which are in your project.
In project - properties - build targets you can then set what sort of output file is created. Type "Console application" is typically used for irrlicht applications.
Usually you also have to add the libraries to link. You do that in project build options - linker settings - link libraries.
In project - properties - build targets you can then set what sort of output file is created. Type "Console application" is typically used for irrlicht applications.
Usually you also have to add the libraries to link. You do that in project build options - linker settings - link libraries.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
if you want to create an Irrlicht application with codeblocks (and I guess you want to as you are posting in an Irrlicht forum) simply create a new project, the wizard gives you Irrlicht Projects as option and add the files you want to have compiled. I think Code::Blocks is pretty easy to use.
Dustbin::Games on the web: https://www.dustbin-online.de/
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames