User forums > Using Code::Blocks
multiple file c++ project
Robert_S:
Hi, I have just installed CodeBlocks 10. rc2 and the most recent build of MinGW. They are installed and runing as expected.
Please bear with me as I am compltely new to both these programs and I'm trying to familiarise myself with using them.
I have been trying to compile a multifile open source project with no success as yet.
I created a new console project, checked the "don't create an file box" and then added files recursively to the the workspace.
This creates Source and Header folders as expected. The trouble I have is if I select the .cc file which contains main and attemp to compile it I get a build error error message stating that it cannot find a particular header file which is contained and one of the project subfolders.
I've searched the forum and don't seem to be able to find an answer to this. Can anone tell me how to fix it please?
Or better still could they attempt to build the program and give me a guide on how to achieve this.
The source code can be found here:
ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02.tar.gz
I'm trying to build pdfinfo.cc.
Robert_S:
update. Okay I've found that I should have all the source files in one common folder.
CB still can't seemto find a particular header file that is present in that folder.
Any ideas?
killerbot:
well apart from the problem you might have, I would like to suggest to use an nightly build. RC2 is so old ;-)
Robert_S:
Okay I'll try a nightly build as you suggest. The file header file that is report missing is aconf.h, if you right click and select open #include file 'aconf.h' C::B will display it without error.
I looked at the ms_make.bat for some clues and it has the line : copy aconf-win32.h aconf.h
I just renamed aconf-win32.h to aconf.h. The error remains the same.
thomas:
Hmm... I don't have that header on my system, so I guess it belongs to the package you want to compile. In this case, you probably want to add the folder that contains all the project's includes to the compiler's search path.
Navigation
[0] Message Index
[#] Next page
Go to full version