Author Topic: Importing existing files under a project  (Read 9299 times)

gauravnaik

  • Guest
Importing existing files under a project
« on: May 01, 2012, 10:33:41 am »
hello,

i have some c++ files which i need to import under a single project in code blocks. I can open the files indvidually but i cannot use the features like "find implementaion" etc. i created a new project and replaced the main.cpp with the existing main, but it did not work.

please help.

thanks :)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9597
Re: Importing existing files under a project
« Reply #1 on: May 01, 2012, 10:38:43 am »
Setup your project properly.

- create an empty project
- add all files needed to that project
- adjust the compiler / linker include path's and other settings so it compiles
- CC should work.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ