Author Topic: Using Irrlicht 1.8.4 with Code::Blocks  (Read 3922 times)

ckenyon_17

  • Guest
Using Irrlicht 1.8.4 with Code::Blocks
« on: January 08, 2017, 09:31:32 am »
I'm having issues with using Irrlicht along with code blocks. I'm running Linux Mint 18.1.

Here are my settings:

Compiler Flags:
---------------------
Produce debugging symbols [-g]
Enable all common compiler warnings (overrides many other settings) [-Wall]
Optimize fully (for speed) [-O3]

Other Options:
---------------------
-fexceptions
-ffast-math

Linker Settings:
---------------------
Link libraries:
---------------------
Irrlicht
GL
GLU
Xxf86vm
Xext
X11

Search Directories:
---------------------
Compiler:
---------------------
../../../../../../opt/irrlicht-1.8.4/include

Linker:
---------------------
../../../../../../opt/irrlicht-1.8.4/lib/Linux

When I build my "main.cpp" file, (which just for a test is the "Hello World" example) everything compiles correctly but when running the file I get "Process terminated with status -1 (0 minute(s), 0 second(s))"

Not sure what I'm doing wrong. If any additional information is needed let me know. Thank you in advance.


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Using Irrlicht 1.8.4 with Code::Blocks
« Reply #1 on: January 08, 2017, 10:09:10 pm »
use the debugger?
make a clean / build or rebuild?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7607
    • My Best Post
Re: Using Irrlicht 1.8.4 with Code::Blocks
« Reply #2 on: January 08, 2017, 10:45:46 pm »
Uncheck this option!

Quote
Optimize fully (for speed) [-O3]

On Windows, the [-O3] option is know to cause bugs.
Note: On Windows, using [-g] and any optimize level is counter to normal.

Tim S.
« Last Edit: January 08, 2017, 10:47:53 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Using Irrlicht 1.8.4 with Code::Blocks
« Reply #3 on: January 09, 2017, 07:34:19 am »
He's not on windows and I would not think that -O3 would cause this. Maybe the app crashes early on, or the irrlicht library can't load some dependency library?
It's best for starters to disable optimization because that doesn't help debugging.

A good test would be to perform:

ldd path/to/your/test/app

And see if everything resolves. In case you use the dynamic library of irrlicht, do the same on that library.

(I know it doesn't have much to do with C::B but with you compiler)

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Using Irrlicht 1.8.4 with Code::Blocks
« Reply #4 on: January 10, 2017, 12:13:04 am »
and do a error checking on every file irrlicht loads and check for internal errors. This is for sure a programming error and not a problem with codeblocks.

The easiest way to resolve this is simply to hit the red arrow and debug your application