![Very Happy :D](./images/smilies/icon_biggrin.gif)
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
.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
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