delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/28/17:21:44

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: Re: link against .lib
28 Oct 1998 17:21:44 -0800 :
Message-ID: <19981027205810.13973.rocketmail.cygnus.gnu-win32@send104.yahoomail.com>
Reply-To: earnie_boyd AT yahoo DOT com
Mime-Version: 1.0
To: T-ONLINE <schmolli AT t-online DOT de>, gnu-win32 AT cygnus DOT com

gnu-win32 does not support the Borland product objects.  Borland
objects are a different data format that MS product objects.



---T-ONLINE <schmolli AT t-online DOT de> wrote:
>
> I've got a linker-problem with a .lib that cannot be solved by the
>  explanations in your faq (www.cygnus.com/mis/gnu-win32/faq.html)!
> 
> situation: there's a slpapi32.dll and slpapi32.lib for operations
> 	   on a label-printer. these are generated with borland c++.
> 	   further there's a c-program for the printer.
> 	   i want do change and modify its source code (the name is
> 	   'apitest.cpp' - look a the print-out below), re-compile and
> 	   re-link with 'g++'.
> 
> problem: i cannot link against slpapi32.dll or slpapi32.lib, as
follows
> 
> This is the MS-DOS-Printout:
> 
>  C:\home\david\Slp>g++ -c apitest2.cpp 
> 
>  C:\home\david\Slp>gcc -o apitest2 apitest2.o
>  apitest2.o(.text+0x89):apitest2.cc: undefined reference to
> `SlpCreateFont AT 12'
>  apitest2.o(.text+0x9c):apitest2.cc: undefined reference to
> `SlpCreateFont AT 12'
>  apitest2.o(.text+0xaf):apitest2.cc: undefined reference to
> `SlpCreateFont AT 12'
>  apitest2.o(.text+0xbd):apitest2.cc: undefined reference to
> `SlpSetLabelType AT 8'
>  apitest2.o(.text+0xc2):apitest2.cc: undefined reference to
> `SlpNewLabel AT 0'
>  apitest2.o(.text+0xd4):apitest2.cc: undefined reference to
> `SlpDrawTextXY AT 16'
>  apitest2.o(.text+0xe6):apitest2.cc: undefined reference to
> `SlpDrawTextXY AT 16'
>  apitest2.o(.text+0xf8):apitest2.cc: undefined reference to
> `SlpDrawTextXY AT 16'
>  apitest2.o(.text+0x101):apitest2.cc: undefined reference to
> `SlpDeleteFont AT 4'
>  apitest2.o(.text+0x10a):apitest2.cc: undefined reference to
> `SlpDeleteFont AT 4'
>  apitest2.o(.text+0x113):apitest2.cc: undefined reference to
> `SlpDeleteFont AT 4'
>  gcc: Internal compiler error: program ld got fatal signal 1
> 
> **O.K.
> 
> **AND THEN:
> 
>  C:\home\david\Slp>gcc -o apitest2 apitest2.o -lslpapi32.lib
>  /gnuwin32/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: cannot open
> -lslpapi32.lib:
>  No such file or directory
>  gcc: Internal compiler error: program ld got fatal signal 1
> 
>  C:\home\david\Slp>gcc -o apitest2 apitest2.o -lslpapi32
>  /gnuwin32/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: cannot open
> -lslpapi32: No s
>  uch file or directory
>  gcc: Internal compiler error: program ld got fatal signal 1
> 
>  C:\home\david\Slp>gcc -o apitest2 apitest2.o -L. -lslpapi32
>  /gnuwin32/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: cannot open
> -lslpapi32: No s
>  uch file or directory
>  gcc: Internal compiler error: program ld got fatal signal 1
> 
>  C:\home\david\Slp>gcc -o apitest2 apitest2.o -L. -lSlpapi32.lib
>  /gnuwin32/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: cannot open
> -lSlpapi32.lib:
>  No such file or directory
>  gcc: Internal compiler error: program ld got fatal signal 1
> 
>  C:\home\david\Slp>gcc -o apitest2 apitest2.o -L. Slpapi32.lib
>  Slpapi32.lib: file not recognized: File format not recognized
>  gcc: Internal compiler error: program ld got fatal signal 1
> 
> 
> *Can you help!?
> 
> please reply via e-mail, 'cause i'm not yet subscribed to your
> mailinglist.
> -
> For help on using this list (especially unsubscribing), send a
message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
> 

==
-                  \\||//
-------------o0O0--Earnie--0O0o--------------
--          earnie_boyd AT yahoo DOT com          --
-- http://www.freeyellow.com/members5/gw32 --
----------------ooo0O--O0ooo-----------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019