Hi,

I have been trying forever (and am running out of
time) to use:
use Inline C => Config => LIBS =>

and I use a symbol that is in the library that I
specify in LIBS but when I compile my program I get an
error that my symbol is undefined and I look at the
compiler output and dont see it ever putting my -L or
-l in the compile options hen I look at the output of
the compiler options. I am using Visual C++ 6.0 an the
cl.exe compiler. I have tried everything
that I could think of but can get my LIBS directory or
LIBS library to show up on my comple options. INC
seems to show up in my compile options but not LIBS.
Have you ever seen this problem?

Here is some sample code:

use Inline C => Config => INC => '-I
"C:/Program_Files/Data Translation/DT Frame Grabber 32
SDK/Include"';
use Inline C => Config => LIBS => '-L "C:/Program
Files/Data Translation/DT Frame Grabber 32
SDK/Lib/ColorSDK" -lolimg32';
use Inline C => <<'END_OF_C_CODE';

#include <olwintyp.h>
void greet(char *name) {
 printf("Hello %s\n",name);
 OlImgOpenDevice("DT313xK-1");
 }
END_OF_C_CODE

greet('Inngy');
greet(42);


Then I run:

> perl hello.pl 

and I get an error that olImgOpenDevice() is
undefined.

I am using Windows XP, Activestate PERL 5.8.7, and
Inline::C 0.44

Thanks,
Todd


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to