Re: Creating dll in cygwin gives "Undefined reference" errors

2007-08-18 Thread Pradip Jadav
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,

Re: Creating dll in cygwin gives "Undefined reference" errors

2007-08-11 Thread Brian Dessent
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

Re: Creating dll in cygwin gives "Undefined reference" errors

2007-08-11 Thread Pradip Jadav
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,

Re: Creating dll in cygwin gives "Undefined reference" errors

2007-07-29 Thread Morgan Gangwere
> 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

Re: Creating dll in cygwin gives "Undefined reference" errors

2007-07-28 Thread Brian Dessent
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

Re: creating dll

2004-01-12 Thread Yamini Sekar
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

Re: creating dll

2004-01-11 Thread Larry Hall
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

Re: creating dll

2004-01-11 Thread Yamini Sekar
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

Re: creating dll

2004-01-11 Thread Gerrit P. Haase
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