[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnucap-devel] mingw DLL problem

From: al davis
Subject: [Gnucap-devel] mingw DLL problem
Date: Sat, 3 Nov 2007 00:06:18 -0400
User-agent: KMail/1.9.7

I still can't figure out how to make it work.

Consider the file  ""
extern int bar();
int foo(int q)
  return q*bar();

On Linux, to make a native .so I can do:
        g++ -fPIC --shared
and it builds an appropriate file, such that "bar" will be 
resolved later.

The problem is if I do:
        i586-mingw32msvc-g++  --shared
It responds with:
/tmp/ undefined reference to 
collect2: ld returned 1 exit status

With a real file, I get a flood of these messages.

What am I doing wrong?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]