Author Topic: how to import c++ files and makefile... but not an actual project  (Read 10343 times)

diN0bot

  • Guest
how to import c++ files and makefile... but not an actual project
« on: September 10, 2007, 10:22:00 pm »
Hello,

Code::Blocks is looking super awesome. However, I've run into a snag. I've been working on a large project using emacs and make. I made a new project in Code::Blocks and would like to "import files" into it... but I can't link things up right. I've tried modifying the cbp file:

                <Compiler>
                        <Add option="-Wall" />
                        <Add directory="/localdisk/lmendel/working/src" />
                </Compiler>

as well as creating symbolic links to /localdisk/lmendel/working/src in my codeblock project directory.

I've skimmed every page in the manual.

Questions:
should I create a certain kind of project with the wizard? (none seemd to fit the bill, but there were many options and I found them confusing)
is there some way to view the files in the project through codeblocks? like Eclipse's package explorer?

I apologize if these are dumb questions. I've been searching the wiki, the faq, the forums and the manual to get a sense for how to use the IDE, but a little bit of guidance in getting started would be great.

Thanks,
Lucy.

Offline Jan van den Borst

  • Multiple posting newcomer
  • *
  • Posts: 99
Re: how to import c++ files and makefile... but not an actual project
« Reply #1 on: September 10, 2007, 10:25:42 pm »
Press the right mouse button on the project in the projectview and select "add files recursively..." to add files to a project.

Jan

diN0bot

  • Guest
Re: how to import c++ files and makefile... but not an actual project
« Reply #2 on: September 10, 2007, 10:40:00 pm »
I've tried that. One problem is that when I select a folder in the file browser it keeps trying to open it... whereas I want to select that folder as the destination.
Another problem is that when I enter the name of the folder I want to import (recursively), nothing happens. I've checked that the path is right (in fact it autocompletes as I type).
Again, I wonder if there is some kind of "folder explorer" view --- is that what the projects tab is under Management? Is there some way to browse the cpp and hpp files in my project without having to use File->Open File...?

Thanks.

diN0bot

  • Guest
Re: how to import c++ files and makefile... but not an actual project
« Reply #3 on: September 10, 2007, 10:41:26 pm »
Also, does import copy the files into my project folder? Does it use a symbolic link? Should I see anything when I 'ls' in the same directory as the .cbp file other than the cbp and layout files?