public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: T-ONLINE <schmolli@t-online.de>, gnu-win32@cygnus.com
Subject: Re: link against .lib
Date: Wed, 28 Oct 1998 00:40:00 -0000	[thread overview]
Message-ID: <19981027205810.13973.rocketmail@send104.yahoomail.com> (raw)

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



---T-ONLINE <schmolli@t-online.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@12'
>  apitest2.o(.text+0x9c):apitest2.cc: undefined reference to
> `SlpCreateFont@12'
>  apitest2.o(.text+0xaf):apitest2.cc: undefined reference to
> `SlpCreateFont@12'
>  apitest2.o(.text+0xbd):apitest2.cc: undefined reference to
> `SlpSetLabelType@8'
>  apitest2.o(.text+0xc2):apitest2.cc: undefined reference to
> `SlpNewLabel@0'
>  apitest2.o(.text+0xd4):apitest2.cc: undefined reference to
> `SlpDrawTextXY@16'
>  apitest2.o(.text+0xe6):apitest2.cc: undefined reference to
> `SlpDrawTextXY@16'
>  apitest2.o(.text+0xf8):apitest2.cc: undefined reference to
> `SlpDrawTextXY@16'
>  apitest2.o(.text+0x101):apitest2.cc: undefined reference to
> `SlpDeleteFont@4'
>  apitest2.o(.text+0x10a):apitest2.cc: undefined reference to
> `SlpDeleteFont@4'
>  apitest2.o(.text+0x113):apitest2.cc: undefined reference to
> `SlpDeleteFont@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@cygnus.com" with one line of text: "help".
> 

==
-                  \\||//
-------------o0O0--Earnie--0O0o--------------
--          earnie_boyd@yahoo.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@cygnus.com" with one line of text: "help".

             reply	other threads:[~1998-10-28  0:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-28  0:40 Earnie Boyd [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-26  9:18 T-ONLINE
1998-10-27  8:41 ` Mumit Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19981027205810.13973.rocketmail@send104.yahoomail.com \
    --to=earnie_boyd@yahoo.com \
    --cc=gnu-win32@cygnus.com \
    --cc=schmolli@t-online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).