C language > Beginner questions
Integration of several compilation units
TimoVJL:
Insert include path of BagInt to mainBag project for main.c
An example using static lib.
sgraffe:
Yes, it works, I hadn't noticed it before in your example, but the IDE knows where the include file is because it shows the include under the mainBag project, so I think I shouldn't have to tell it where to look.
I added the test drivers, and there is a gotcha. All obj files are saved in a common directory, so test modules cannot have the same name (test.c, or main.c for example). Just a minor inconvenience. Rebuilding kills the problem, but it is better to have a different name for each test (testUnit1.c, f.e.), so you can build or rebuild.
Thank you very much for the new example. I am going to look into it.
Best regards,
sgraffe:
I recreated your example of library. I like this approach. At the beginning it didn't work, I got unresolved externals, that was caused by different calling conventions which I fixed. Thank you for the example, I learned a lot.
One last question: How do you change the output dir of the compiler from "output" to "out32" like your example, or any other dir? I would like to compile each unit test driver to a separate directory.
Best regards,
TimoVJL:
Just manually edit .ppj file:
POC_PROJECT_OUTPUTDIR = output#
and where that output is used.
out32 ?
http://forum.pellesc.de/index.php?topic=4603.msg21270#msg21270
WSEdit (from L.D.Blake):
http://www.johnfindlay.plus.com/pellesc/addin/addin.html
http://www.johnfindlay.plus.com/pellesc/addin/Addins.zip
sgraffe:
Thank you very much!
Best regards,
Navigation
[0] Message Index
[*] Previous page
Go to full version