delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/16/19:35:00

From: Ian AT kiwiplan DOT co DOT nz (Ian Collins)
Subject: Creating a dll problem.
16 Nov 1997 19:35:00 -0800 :
Message-ID: <07551A47EAD6D01186430060B025C6F41B6F39.cygnus.gnu-win32@ntserver.kiwiplan2.co.nz>
Mime-Version: 1.0
To: "'Gnu Mailing list'" <gnu-win32 AT cygnus DOT com>

I have a number of C libraries that I want to make into a dll that can
be callable from VB5.
I created a DEF file called mylib.def

I ran dlltool as follows,

dlltool --def mylib.def --output-exp mylib.exp --dllname mylib.dll

I then tried to create the mylib.dll using,

gcc -o mylib.dll libmy1.a libmy2.a -dll -mrtd

I then get the error,

e:\b18\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\cygnus-2.7.2-970404\../
.../../../i386-cygwin32\lib/libcygwin.a(libcmain.o)(.text+0x54):libcmain.
cc: undefined reference to `WinMain AT 16'

What am I doing wrong (or even right)?

The libmy1.a and libmy2.a are simple C modules performing normal C
processing. (I have even performed the above with a couple of dummy
modules that just add a number).

Ian Collins. 
KIWIPLAN NZ.


-
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