User forums > Using Code::Blocks

Possible flaw in C::B build system

<< < (2/3) > >>

oBFusCATed:
http://sourceforge.net/apps/mantisbt/cbp2make/view.php?id=2

mirai:
Well, you finally got the file. :)  Sorry for accidentally posting wrong link twice...

So, what do you think about the topic ?

MortenMacFly:

--- Quote from: mirai on May 11, 2012, 11:08:09 am ---So, what do you think about the topic ?

--- End quote ---
I tried. All 3 examples work just fine for me inside C::B (I didn't try cbp2make). I had to create project files for the dummy 1/2 as they were not provided.

So wither you are using flat objects /which is certain to fail in this case, but also a setting you must explicitly set), or your project files are wrong. The latter I could not verify.

mirai:

--- Quote from: MortenMacFly on May 14, 2012, 08:51:37 am ---I tried. All 3 examples work just fine for me inside C::B (I didn't try cbp2make). I had to create project files for the dummy 1/2 as they were not provided.

--- End quote ---
Wait, you seem to did this wrong way. Project files are provided, but they are located two(three) levels down from top directory.
Indeed, this is the one of important test conditions.
The way you did it C::B system won't fail, because you made 1&2 cases into normal build as in 3rd case.

Nor the reporter nor me are using flat objects and the topic is not related to them because the build system will work or fail whenever objects are flat or not, this is just irrelevant.

stahta01:
2 out of 3 work for me; without modification using CB SVN 7965 self-built.


--- Code: ----------------- Build: Debug in level2 (compiler: GNU GCC Compiler Dwarf 2)---------------

g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-3\level1\level2\level1.cpp -o obj\Debug\level1\level2\level1.o
g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-3\main.cpp -o obj\Debug\main.o
g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-3\root.cpp -o obj\Debug\root.o
g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-3\level1\level1.cpp -o obj\Debug\level1\level1.o
g++.exe  -o bin\Debug\level2.exe obj\Debug\level1\level2\level1.o obj\Debug\main.o obj\Debug\root.o obj\Debug\level1\level1.o    
Output size is 36.34 KB

-------------- Build: Debug in level2 (compiler: GNU GCC Compiler Dwarf 2)---------------

g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-1\level1\level2\main.cpp -o obj\Debug\main.o
g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-1\root.cpp -o obj\Debug\root.o
g++.exe -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-1\level1\level1.cpp -o obj\Debug\level1.o
g++.exe  -o bin\Debug\level2.exe obj\Debug\main.o obj\Debug\root.o obj\Debug\level1.o    

--- End code ---

You might want to post more info; note, naming the projects with different title might also help.

Got the last one to build after I renamed the file containing the function level2 to level2.cpp


--- Code: ----------------- Build: Debug in level2 (compiler: GNU GCC Compiler Dwarf 2)---------------

g++.exe -Wmissing-include-dirs -Wextra -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-2\level1\level2\main.cpp -o obj\Debug\main.o
g++.exe -Wmissing-include-dirs -Wextra -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-2\root.cpp -o obj\Debug\root.o
g++.exe -Wmissing-include-dirs -Wextra -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-2\level1\level1.cpp -o obj\Debug\level1.o
g++.exe -Wmissing-include-dirs -Wextra -Wall  -g     -c C:\Users\stahta01\Downloads\relpath_tests\relpath_tests\dummy-2\level1\level2\level2.cpp -o obj\Debug\level2.o
g++.exe  -o bin\Debug\level2.exe obj\Debug\main.o obj\Debug\root.o obj\Debug\level1.o obj\Debug\level2.o    
Output size is 36.34 KB

--- End code ---

Tim S.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version