User forums > Using Code::Blocks

3rd party libraries: compiling does not work

<< < (5/5)

BlueHazzard:
I have googeled your "library" and i think this is this standford programming course or? If so: you have a source library. Simple copy all .cpp and .h files in your project directory and add them to your project (right click on project->add files).

zeno:
Path of header files: C:\MinGW\include\cs106_full_cpp_library\
This is also the path I have defined in 'project>build options>linker settings' and '>>search directories'
Path of C::B project file: C:\Users\Algorithm\C++ St\Project CodeBlocks\CS106 so it has spaces, and so a problem?
File 'CS106.cbp' has size 1KB (too small?) and is attached.
I have added the header files recursively to the project.
Also, I have reinstalled C::B directly on c-drive and made sure not to have any spaces in folder names (which might be an issue in default installation?).
BlueHazzard: this is indeed one of the exercises... and I believe I have already done what you suggest.

stahta01:

--- Quote from: zeno on April 02, 2014, 04:10:54 pm ---Path of header files: C:\MinGW\include\cs106_full_cpp_library\
This is also the path I have defined in 'project>build options>linker settings' and '>>search directories'
Path of C::B project file: C:\Users\Algorithm\C++ St\Project CodeBlocks\CS106 so it has spaces, and so a problem?
File 'CS106.cbp' has size 1KB (too small?) and is attached.
I have added the header files recursively to the project.
Also, I have reinstalled C::B directly on c-drive and made sure not to have any spaces in folder names (which might be an issue in default installation?).
BlueHazzard: this is indeed one of the exercises... and I believe I have already done what you suggest.

--- End quote ---

You have no source files in your project!!!!!!

Do what BlueHazzard suggested.

Bye, I am tired of wasting my time trying to help you.

Tim S.

zeno:
I attach codeblocks image so that you can see for yourself that these files are added to the project, both source and header files, as needed to build the file.
I even have the header file in that project open, as you can see. The path to this file is defined, as I mentioned already a few times.
I have also tried to resolve the 'spaces in path' problem. I have recreated the project again, and I have reinstalled codeblocks.
Any of your suggestions I have not yet tried are kindly appreciated.

BlueHazzard:
please, please don't use any directories. You are a beginner, and this makes things more difficult that they are...
copy all your cpp and header files in one directory and add them to your project... so you don't need any paths to set up...

In the future please say that you are using a source library. because we assumed that you are using a binary library, and so u confused us...

greetings

Navigation

[0] Message Index

[*] Previous page

Go to full version