On 8/11/07, Brian Dessent <[EMAIL PROTECTED]> wrote:
> g++ -o main.exe main.o -ldl -Wl,-out-implib,libmain.dll.a
I tried this, but it gives same "Unresolved reference" errors. I will
do R&D on this and excluding "__declspec" part later.
But currently I am going with "__declspec " part . Using it,
Pradip Jadav wrote:
> ###create main.exe file.
> g++ -o main.exe main.o -ldl
>
> ###create .def file
> dlltool.exe --export-all-symbols --output-def main.def main.o
>
> ###create main library file.
> dlltool.exe --dllname main.exe --def main.def --output-lib libmain.dll.a
This is redundant. Yo
On 7/28/07, Brian Dessent <[EMAIL PROTECTED]> wrote:
> Pradip Jadav wrote:
>
> > But when I compiles in cygwin it gives me some "Undefined reference" errors.
> > Take an example,
> >
> > /cygdrive/e/DOCUME~1/LOCALS~1/Temp/ccLMFYUe.o:sample.c:(.text+0x4c):
> > undefined reference to `createlog(int,
> The undefined reference is because fundamentally ELF (Linux) and PE/COFF
> (Windows) are very different in terms of how linking works under the
> hood. The short explanation is that PE/COFF requires all references to
> be resolved at link-time, thus you have to explicitly tell the linker
> where
Pradip Jadav wrote:
> But when I compiles in cygwin it gives me some "Undefined reference" errors.
> Take an example,
>
> /cygdrive/e/DOCUME~1/LOCALS~1/Temp/ccLMFYUe.o:sample.c:(.text+0x4c):
> undefined reference to `createlog(int, char*, ...)'
>
> Now this "createlog" function is defined in on
ok . fine larry!
GAS TURBINE RESEARCH ESTABLISHMENT ,BANGALORE
-- Original Message ---
From: Larry Hall <[EMAIL PROTECTED]>
To: "Yamini Sekar" <[EMAIL PROTECTED]>, "Gerrit @ cygwin"
<[EMAIL PROTECTED]>
Sent: Sun, 11 Jan 2004 23
doing
>project in vc++. If i have doubt, shall i ask you ??
>
>rgds
>yamini.
>
>GAS TURBINE RESEARCH ESTABLISHMENT ,BANGALORE
>
>
>-- Original Message ---
>From: "Gerrit P. Haase" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Sent: S
t; <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Sun, 11 Jan 2004 09:53:51 +0100
Subject: Re: creating dll
> Hallo yamini,
>
> Am Sonntag, 11. Januar 2004 um 08:35 schriebst du:
>
> > Sir,
> >I have a doubt in creating a dll in the borland c++
> > compiler. plz s
Hallo yamini,
Am Sonntag, 11. Januar 2004 um 08:35 schriebst du:
> Sir,
>I have a doubt in creating a dll in the borland c++
> compiler. plz send the reply as soon as possible and
> also send the mail to thiis id.
> [EMAIL PROTECTED]
This mailing list is about Cygwin(tm) from the company Red
9 matches
Mail list logo