Hi !
QCC behaves strangely when compiling single-source executable.
Take the “dummy.cpp” source code (see below) for example :
If I compile it with gcc :
gcc -o dummy.gcc dummy.cpp
then the resulting executable works perfectly.
But if I try to compile it with qcc ou QCC,
QCC -o dummy.qcc dummy.cpp
then the resulting executable would not run. Instead we have the following
errors :
unknown symbol: __deregister_frame_info
unknown symbol: __register_frame_info
Could not resolve all symbols
I do not remember having that kind of problem when I used NTO 6.2.0.
Does anybody know why ?
Cyril.
// DUMMY.CPP
#include <stdlib.h>
#include <stdio.h>
#include <sys/wait.h>
int main( int argc, char * argv[] )
{
fprintf( stdout, “Launching %s …\n”, argv[0] );
fflush( stdout );
int rc = system( “ls” );
if( rc == -1 ) fprintf( stdout, “shell could not be run\n” );
else fprintf( stdout, “result of running command is %d\n”,
WEXITSTATUS( rc ) );
fflush( stdout );
return EXIT_SUCCESS;
}