User forums > Using Code::Blocks
Installing the ACE Threads package on C::B
Michael:
--- Quote from: mtk on January 15, 2006, 08:32:38 am ---but compiling projects still doesn't work.
Any compiler options that I shouls change?
--- End quote ---
Hello,
it would be good if you can give some info about your C::B version and the problems you have had.
Michael
mtk:
The C::B version is:1.0rc2
the problem is that compiling this:
--- Code: ---#include "ace/OS.h"
#include "ace/Task.h"
#include <iostream>
#include <string>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
--- End code ---
returned the attached errors.
[attachment deleted by admin]
Michael:
Hello,
Having a look at your errors, I have remarked that:
* You must link against multi-threaded libraries when using ACE. Thomas has given a link above. Did you try it?
* Some of your header files are not found (i.e., No such file or directory). This generates errors (of course). Did you correctly include the path of the included files (Project-->Build options-->Directories-->Compiler)?
Best wishes,
Michael
PS.: I would also suggest you to use the latest nightly build instead of RC2. Or compile the latest SVN revision by yourself (easy and worth).
mtk:
Sorry didn't see thomas' remarks...
where exactly do I have to add this option?
About the included files, I didn't add them because I used the pack, so I assumed this is done for me...
Michael:
--- Quote from: mtk on January 17, 2006, 01:54:37 pm ---Sorry didn't see thomas' remarks...
where exactly do I have to add this option?
--- End quote ---
Try to "other compiler options".
--- Quote from: mtk on January 17, 2006, 01:54:37 pm ---About the included files, I didn't add them because I used the pack, so I assumed this is done for me...
--- End quote ---
Even if you just use already compiled libraries, you should always add the header files. Normally, they are stored into an include directory.
Michael
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version