User forums > Using Code::Blocks

compiles fine in command prompt, but code blocks complains

<< < (5/5)

killerbot:

--- Quote from: darkwalk on May 23, 2007, 05:35:24 pm ---<How does it look for yours.>

yea, it looks correct now:

      </Compiler>
      <Unit filename="main.cpp" />
      <Unit filename="printStuff.cpp">
         <Option target="Release" />
      </Unit>
      <Unit filename="printStuff.h">
         <Option target="Release" />
      </Unit>

All three files are included.  Thanks!

--- End quote ---

well if it looks like you just posted, they are not part of the Debug target !!!

darkwalk:
I think I didn't save the project before editing the cbp file. Does this look correct now:

      <Compiler>
         <Add option="-Wall" />
         <Add option="-fexceptions" />
      </Compiler>
      <Unit filename="main.cpp" />
      <Unit filename="printStuff.cpp" />
      <Unit filename="printStuff.h" />
      <Extensions>
         <code_completion />
      </Extensions>   

I created a new project and imported all the files using the "debug" and "release" check box.

killerbot:
perfect.

ENJOY CODE::BLOCKS !!!!!

Navigation

[0] Message Index

[*] Previous page

Go to full version