g++ linking

2004-05-27 Thread Devender Marri
Hi, I am not able to link one of my program using g++, so looking forward for some help. I am having a library(util.lib) and dll(util.dll) file. I am trying to link my program to the dll and getting undefined reference error where as the same thing works if I try in linux environment. when I t

Re: g++ linking

2004-05-27 Thread Larry Hall
At 05:57 AM 5/27/2004, you wrote: >Hi, > >I am not able to link one of my program using g++, so looking forward for some help. > >I am having a library(util.lib) and dll(util.dll) file. > >I am trying to link my program to the dll and getting undefined reference error where >as the same thing work

g++ linking probs

2003-02-20 Thread Manu Anand
Guys I am linking a simple C++ program with an external library using g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib -lcppunit prog.cxx The linker is giving me a lot of undefined references. However when I connect using telnet to RH Linux box the program runs OK. I looked up t

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> Guys > I am linking a simple C++ program with an external library using > g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib > -lcppunit prog.cxx > > The linker is giving me a lot of undefined references. > However when I connect using telnet to RH Linux box the program runs OK.

RE: g++ linking probs

2003-02-20 Thread Manu Anand
From: Elfyn McBratney[SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 2:19 PM > To: cygwin; Manu Anand > Subject: Re: g++ linking probs > > > Guys > > I am linking a simple C++ program with an external library using > > g++ -W -Wall -ansi

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference to > `CppUnit::TestCase::TestCase[not-in-charge](std::basic_string std::char_traits, std::allocator >)' > > /cygdrive/c/TEMP/ccL6jx4L.o(.text$_ZN7CppUnit16TestSuiteBuilderI12EmployeeTe > stE7addTestEPNS_4TestE+0x1c):/home/Adm

RE: g++ linking probs

2003-02-20 Thread Manu Anand
ary 20, 2003 2:32 PM > To: cygwin; Manu Anand > Subject: Re: g++ linking probs > > > /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference > to > > `CppUnit::TestCase::TestCase[not-in-charge](std::basic_string > std::char_traits, std::allocator

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> Hi > I have libcppunit.la and libcppunit.a > That'll be static,right?? > > How do I link it then? > -Manu > Like so g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib libcppunit.a prog.cxx But it's static so it won't make any difference. Sorry I'm all out! > > > /home/Adminis

Re: g++ linking probs

2003-02-20 Thread Andrew Markebo
/ Manu Anand <[EMAIL PROTECTED]> wrote: | Guys | I am linking a simple C++ program with an external library using | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib | -lcppunit prog.cxx Try throwing -lcppunit _after_ prog.cxx /Andy -- The eye of the beholder rests on the

Re: g++ linking probs

2003-02-20 Thread Elfyn McBratney
> / Manu Anand <[EMAIL PROTECTED]> wrote: > | Guys > | I am linking a simple C++ program with an external library using > | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib > | -lcppunit prog.cxx > > Try throwing -lcppunit _after_ prog.cxx > > /Andy I can't believe I didn

RE: g++ linking probs

2003-02-20 Thread Manu Anand
Thursday, February 20, 2003 2:46 PM > To: [EMAIL PROTECTED] > Subject: Re: g++ linking probs > > / Manu Anand <[EMAIL PROTECTED]> wrote: > | Guys > | I am linking a simple C++ program with an external library using > | g++ -W -Wall -ansi -pedantic -I/usr/loca

Re: g++ linking probs

2003-02-20 Thread Andrew Markebo
/ "Elfyn McBratney" <[EMAIL PROTECTED]> wrote: |> / Manu Anand <[EMAIL PROTECTED]> wrote: |> | Guys |> | I am linking a simple C++ program with an external library using |> | g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib |> | -lcppunit prog.cxx |> |> Try throwing -lcppunit _a

g++ linking shared object problem

2008-06-05 Thread stamen
Hi, I link a program to a shared library (which I created before). From the library I just use one class. The linking seems to work. However the final executable seems to be corrupt. It just starts and stops without an error message. However even print statements which are in the code are not

Re: g++ linking shared object problem

2008-06-05 Thread Brian Dessent
[EMAIL PROTECTED] wrote: > gdb: unknown target exception 0xc135 at 0x7c974ed1 It's not corrupt in any way, 0xc135 is simply STATUS_DLL_NOT_FOUND. If you run it outside of Cygwin from a regular command prompt you will see a popup message about missing DLL. You just need to adjust your PA

Re: g++ linking shared object problem

2008-06-05 Thread Christopher Faylor
On Thu, Jun 05, 2008 at 01:31:17PM -0700, Brian Dessent wrote: >[EMAIL PROTECTED] wrote: > >> gdb: unknown target exception 0xc135 at 0x7c974ed1 > >It's not corrupt in any way, 0xc135 is simply STATUS_DLL_NOT_FOUND. >If you run it outside of Cygwin from a regular command prompt you will >s

Windows7 STATUS_ACCESS_VIOLATION and gcc/g++ linking problems

2011-04-11 Thread Tomas Staig
Dear all, we have successfully ported an application framework (based on CORBA) to Windows using Cygwin last year. This porting works properly under Windows XP, but we ran into some problems when we tried to use it under Windows 7 (32-bits) not long ago. While compiling ACE/TAO (Initial part

Re: Windows7 STATUS_ACCESS_VIOLATION and gcc/g++ linking problems

2011-04-11 Thread Yaakov (Cygwin/X)
On Mon, 2011-04-11 at 13:44 -0400, Tomas Staig wrote: > First I'll state that this is most probably not BLODA (unless some > default program that comes with W7 provokes it), FWIW, Windows Defender is a default component of recent versions of Windows, including Win7, and is BLODA. Yaakov -- P

Re: Windows7 STATUS_ACCESS_VIOLATION and gcc/g++ linking problems

2011-04-12 Thread Tomas Staig
Yaakov (Cygwin/X) wrote: On Mon, 2011-04-11 at 13:44 -0400, Tomas Staig wrote: First I'll state that this is most probably not BLODA (unless some default program that comes with W7 provokes it), FWIW, Windows Defender is a default component of recent versions of Windows, including Win7