This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newby C++ lib problem


At a guess (which is the best you can hope for with the little information
provided), use "g++" to compile C++ programs, not "gcc".

If that doesn't help, please post the *exact* command line you use to
compile your program, the program itself (if possible and if it's small),
and the output of "cygcheck -svr" as an attachment (as per
<http://cygwin.com/bugs.html>).
	Igor

On Tue, 11 Mar 2003, Lorin Lund wrote:

> I suppose I need to mention some library to satisfy these unresolved
> references:
>
> str.o(.text+0x168c):str.cpp: undefined reference to `operator
> new[](unsigned)'
> str.o(.text+0x16d3):str.cpp: undefined reference to `operator delete(void*)'

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor at watson dot ibm dot com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]