Mingw Compilation
Posted: Sat Nov 27, 2010 9:21 pm
I am trying to get the sub20 code to compile on mingw using:
gcc -c -O2 -Wall -std=c99 -g -D__SUB_STATIC__ -I..\..\inc -o sub_app.o sub_app.c
gcc -c -O2 -Wall -std=c99 -g -D__SUB_STATIC__ -I..\..\inc -o cmd_pars.o cmd_pars.c
gcc -o sub_app sub_app.o cmd_pars.o -L"C:\Program Files\SUB-20\lib\msvc\Win32" -lsub20
This compiles with no errors or warnings.
on running sub_app.exe I get error:
"sub_find_devices: Unrecognized error -783276545"
I get this on both 32 and 64 bit machines.
Any experience with this?
gcc -c -O2 -Wall -std=c99 -g -D__SUB_STATIC__ -I..\..\inc -o sub_app.o sub_app.c
gcc -c -O2 -Wall -std=c99 -g -D__SUB_STATIC__ -I..\..\inc -o cmd_pars.o cmd_pars.c
gcc -o sub_app sub_app.o cmd_pars.o -L"C:\Program Files\SUB-20\lib\msvc\Win32" -lsub20
This compiles with no errors or warnings.
on running sub_app.exe I get error:
"sub_find_devices: Unrecognized error -783276545"
I get this on both 32 and 64 bit machines.
Any experience with this?