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?
Mingw Compilation
Moderator: serg
Re: Mingw Compilation
Try to compile with WIN_BLD=1
This works under cygwin
Code: Select all
make WIN_BLD=1
Re: Mingw Compilation
Thanks. I will try that.
Actually I noticed that it works anyway (with the adapter plugged in), just gives the wrong error msg when the sub20 is not found.
Actually I noticed that it works anyway (with the adapter plugged in), just gives the wrong error msg when the sub20 is not found.