Page 1 of 1

Mingw Compilation

Posted: Sat Nov 27, 2010 9:21 pm
by obsidian
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?

Re: Mingw Compilation

Posted: Sun Nov 28, 2010 1:14 am
by serg
Try to compile with WIN_BLD=1

Code: Select all

make WIN_BLD=1 
This works under cygwin

Re: Mingw Compilation

Posted: Mon Nov 29, 2010 1:24 am
by obsidian
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.