User forums > Using Code::Blocks
How to change target type ??
grofaz:
Hi,
When I build a project the output is an ".exe" file. How do I set the compiler to output an "a.out" type file ?
When I try to run the ".exe" file I get a can't load dynamic library error and I think it's because I'm outputing ".exe" files.
Thanks for any help.
Regards...
mandrav:
--- Quote from: grofaz on December 28, 2005, 10:53:05 pm ---Hi,
When I build a project the output is an ".exe" file. How do I set the compiler to output an "a.out" type file ?
When I try to run the ".exe" file I get a can't load dynamic library error and I think it's because I'm outputing ".exe" files.
--- End quote ---
The actual name of the file has no impact at all when running it. You could rename it to "something.dat" and you could still execute it. That's not your problem. The problem is that a library your project is linked against dynamically, can't be found at runtime.
Btw, when you 're getting errors and asking for help, it would be a good idea to post the exact error...
grofaz:
Well,
How do I change the default terminal from XTerm to Gnome Terminal ? What is the correct procedure and syntacs ?
Then perhaps I can post some error messages.
Thanks for you swift reply btw.
grofaz
grofaz:
As for the missing library, I can't figure that out. All the necessary libraries are in /usr/local/lib and /usr/local/lib/OGRE.
My ld.so.conf file has /usr/local/lib appended and I have run ldconfig so paths shouldn't be an issue but obviously is. SDL and GLFW projects are working correctly, OGRE is the ogre. :)
Thanks again,
grofaz
mandrav:
--- Quote from: grofaz on December 28, 2005, 11:24:52 pm ---How do I change the default terminal from XTerm to Gnome Terminal ? What is the correct procedure and syntacs ?
--- End quote ---
"Settings->Compiler->Other->Terminal to run console programs". The syntax depends on the terminal you 'll be using. The default command uses xterm.
Navigation
[0] Message Index
[#] Next page
Go to full version