delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/18/12:18:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Vassili Sukharev" <vassili DOT sukharev AT ecora DOT com>
To: <cygwin AT sources DOT redhat DOT com>
Subject: Problem building DLLhelpers using Cygwin
Date: Tue, 18 Jul 2000 12:18:47 -0400
Message-ID: <NEBBKCJHFILJPFHFFHAEEEJNCBAA.vassili.sukharev@ecora.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

Hi All,

I need to build a dll with the cygwin gcc. As a starting point, I tried
building a few dll examples, called dllhelpers, available from the following
page:

http://www.nanotech.wisc.edu/~khan/software/gnu-win32/dllhelpers.html

There is a version for cygwin, which is supposed to be buildable without any
adjustments to makefile. Upon typing make, the following happens:

c++ -c -DBUILDING_DLL=1 -I. -I/mingw/include -g  -mno-cygwin -o dllclass.o
dllclass.cc
c++ -c -DBUILDING_DLL=1 -I. -I/mingw/include -g  -mno-cygwin -o dllexterns.o
dllexterns.cc
gcc -c -DBUILDING_DLL=1 -I. -I/mingw/include -g  -mno-cygwin -o dllinit.o
dllinit.c
dllwrap --export-all --output-def
cxxdll.def -mwindows -k --target=i386-mingw32 \
    --implib libcxx.dll.a --driver-name c++ -o cxxdll.dll \
    dllclass.o dllexterns.o dllinit.o -L/mingw/lib -s -mno-cygwin
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
c++ -c -I. -I/mingw/include -g  -mno-cygwin -o usedll.o usedll.cc
c++ -o usedll.exe -g  -mno-cygwin  usedll.o -L./ -L/mingw/lib -lcxxdll
usedll.o: In function `main':
usedll.cc:30: undefined reference to `_imp___8DllClass$instances'
usedll.cc:30: undefined reference to `_imp__global_dllclass2'
usedll.cc:30: undefined reference to `_imp__global_dllclass2'
usedll.cc:30: undefined reference to `_imp___8DllClass$instances'
usedll.cc:30: undefined reference to `_imp__global_dllclass1'
usedll.cc:30: undefined reference to `_imp__global_dllclass1'
usedll.cc:30: undefined reference to `_imp__global_int_variable'
usedll.cc:38: undefined reference to `_imp___8DllClass$instances'
collect2: ld returned 1 exit status
make: *** [usedll.exe] Error 1


Several people have suggested various things on the mingw mailing list, but
so far I could not fix these errors. Any help would be greatly appreciated.

Thanks,
Vassili



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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