Re: Rebuild with VisualAge C++
Wolfgang Kaess (100346.2055@compuserve.com)
Thu, 18 Jun 1998 17:28:46 -0400
Hello Yuri,
>> Will it be posible to rebuild the sane files with VisualAge C++ ?
> yes, I have compiled SANE also using VAC++ for OS/2, because I needed a
good
> (and well known) debugger; but I have compiled only the core files and a
couple of
> backends. That's because most backends require too much work for porting to
VAC++.
> EMX requires only a fewchanges, already included in the official SANE
distribution.
in the meantime I got it compiled using VAC++.
I have to add the following to the sane\config.h:
#ifndef INC_OS2_H
# define INCL_DOSFILEMGR
# define INCL_DOS
# define INCL_DOSDEVICES
# define INCL_DOSDEVIOCTL
# define INCL_DOSSEMAPHORES
# define INCL_DOSMEMMGR
# include <os2.h>
#endif
#define MAXPATHLEN CCHMAXPATH
#define u_int unsigned int
#define w_char int
#define u_char unsigned char
#define u_long unsigned long
#define lseek fseek
#define read fread
#define write fwrite
#define close fclose
The above 4 procs gives a warning about different params.
As for now I got a runing exe but not a running program.
I don't want to use the "ASPIROUT" because I use the Orignal HP Adapter Card.
Have you also trouble with above 4 procs ?
I don't understand how I could compile/link a backend to my exe.
Trying to build a DLL or compile and static linking faild with
"unresolved externals" ?
Now I have changed sane_backend.h and define all "sane_XXXX" procs in my
backend *.h file will work, but I think this it not the way to go.
Wolfgang Kaess
***
--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com