Topic: Problem linking some libraries in BC++ 3.1


Author: "Jean-Francois Larin" <CV76@music.mus.polymtl.ca>
Date: 27 FEB 95 12:46:06 EDT
Raw View
Hello All!

BTW, I don't know if this posting is appropriate in comp.std.c++, so if
it is not, please tell me by mail...

I have a problem.  I'm using Borland C+  3.1 on a dos system. I'm
compiling a program  ( I made) in C.  I'm using a video card called
IP8 from Matrox (it's  a video grabbing card). Of course I use the
C  libraries that come with the card. All  the function names start
with  VG_WhatEverTheNameIs.  When I compile in C, Borlands adds
an  underscore  _ before each names so everything is right.

The problem is that when I switch  the compiler to C++ mode (by changind
the name of my source file to file.CPP or by changing the option in the
configuration to compile in C++ ALLWAYS) then the compiler does not gene
rate underscores, because at the linking I get error like :

Linker Error: Undefined symbol vg_initlib() in module GRAB.C

I see that A) there is no underscore in the symbol, B) the case
is stripped (everything is lowercase!).

Of course the program doesn't link. I guess that this is because in C++
the underscore is not generated and the case is not significant.

What can I do then to compile in C++ with the standard C library that I
have?
Thanks a lot for any help.

Can yousend me reply by mail, thanks, since I cannot  read the
newsgroup...

Jean-Francois Larin
cv76@music.mus.polymtl.ca