LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2010, 04:41 AM   #1
n3wb
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
Question compiler can't find <new>


My compiler won't find <new>. Since it's such a basic function, I'm a bit confused. Is <new> supposed to be in a file of its own? Where do I find it? And if it turns out to be missing on my computer, where can I find a <new> one? Or do you see anything else that I do wrong?

Edit: After some trying out, it seems I can't find stuff like iostream or any other basic stuff either. The compiler is prolly looking for them at the wrong place. Does anyone know how I change or add paths for the compiler to look in when using the "<>" operator?


mb-linux-g++ -Os -g -fomit-frame-pointer -pipe -fno-common
-fno-builtin -Wall -mno-xl-soft-mul -mcpu=v7.20.d -DEMBED
-I/edu/axewi667/peta/petalinux-v0.40-final/software/petalinux-dist
-I/edu/axewi667/peta/petalinux-v0.40-final/software/petalinux-dist/include
-I/edu/axewi667/peta/petalinux-v0.40-final/software/petalinux-dist/include
-Dlinux -D__linux__ -Dunix -DLINUX -c -o upnp.o upnp.cpp
In file included from NptStreams.h:43,
from Neptune.h:49,
from PltTaskManager.h:40,
from PltUPnP.h:40,
from upnp.cpp:37:
NptStrings.h:40:15: error: new: No such file or directory
NptStrings.h: In static member function ‘static NPT_String::Buffer*
NPT_String::Buffer::Allocate(NPT_Size, NPT_Size)’:
NptStrings.h:192: error: no matching function for call to ‘operator
new(long unsigned int, void*&)’
<built-in>:0: note: candidates are: void* operator new(long unsigned int)
upnp.cpp: At global scope:
upnp.cpp:94: warning: ‘bool UpdateState(PLT_DeviceHostReference&)’
defined but not used
make: *** [upnp.o] Error 1

Last edited by n3wb; 05-12-2010 at 05:14 AM.
 
Old 05-12-2010, 05:58 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
How did you get mb-linux-g++ - I assume from a package installer?

What distribution are you using? If it's any help, on Debian you can just 'apt-get install build-essential'.
 
Old 05-12-2010, 11:11 AM   #3
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
Code:
<built-in>:0: note: candidates are: void* operator new(long unsigned int)
Did you notice this line? Can you post the snippet of your use of new?
 
  


Reply

Tags
compiler, compiling, error



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
can't find c compiler in ubuntu fssengg Ubuntu 7 12-22-2005 05:06 PM
Where can I find a BC compiler. vash_stewy Linux - Software 5 04-09-2004 10:51 PM
Cant find a C-compiler Sence2001 Red Hat 6 04-08-2004 07:03 AM
I can't find a compiler on my machine mjkramer Linux - Newbie 8 10-13-2003 12:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration