User forums > Using Code::Blocks

Cannot run a program compiled in Code Blocks ouside Code Blocks

<< < (3/3)

Radek:
Good hit, Morten. I renamed "test" to "zzz" and I got:

- running as "zzz" : command not found
- running as "./zzz" : runs and writes hello world

So the seemingly running "test" run something else. Full logging is turned on. Command line:

g++ -Wall -fexceptions -O2 -std=c++0x include dirs -c source file -o object file
g++ -o object file -s

Errata: not Midnight Commander but Gnome Commander

Radek:
My deep apologies. The problem was related to my stupidity, not to Code Blocks  :o

What happened? The application is XRC based. During development, a new dialog has been added to the app. The XRC changed, but only in the project folder of the app. The place, where I run the app outside the IDE, contained an old version of the XRC. So, the application run like charm in Code Blocks but once it was copied ouside the IDE, it did not find the dialog in the XRC, all XRCCTRL returned NULL, NULL pointers got dereferenced immediately, and a GP fault followed.

Copying the valid XRC solved all problems. viewer now runs on double click.

Navigation

[0] Message Index

[*] Previous page

Go to full version