OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:25 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 42 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
hamza
Post subject: std::termiante() undefined reference.  PostPosted: Aug 16, 2007 - 07:46 PM
Guest





Hi,
I'm trying to build an application using MHDDK to develop drivers for
PCI-6025E NI board.
I'm using the makefile pasted below.
When I build the projet I have these errors that I can't resolve.

make -k EXTRA_SUFFIXES=cpp all --file=U:/PFE/PCIDrivers/QMakefile9347.tmp

QCC -c -g main.cpp

QCC -Vgcc_ntox86 -g osiBus.o tSTC.o tESeries.o main.o -o main

main.o: In function `tSTC::tAI_START_STOP_Select::setRegister(unsigned
short, nMDBG::tStatus2 *)':

/cygdrive/u/PFE/PCIDrivers/tSTC.ipp(.text+0x2e5): undefined reference to
`std::terminate(void)'

main.o: In function `test(iBus *)':

/cygdrive/u/PFE/PCIDrivers/main.cpp:160: undefined reference to
`std::terminate(void)'

cc: C:/QNX630/host/win32/x86/usr/bin/ntox86-ld caught signal 1

make: *** [main] Error 1

make: Target `all' not remade because of errors.

I searched for a file contaning the function terminate but in vain. None of
all the files I'm using in my project contains the function std::
terminate().
If someone could help resolve this problem it will be very appreciated.
Thank you
 
   
Reply with quote Back to top
garry
Post subject: Re: std::termiante() undefined reference.  PostPosted: Aug 17, 2007 - 12:59 AM
Active Member


Joined: Jun 04, 2004
Posts: 10

Normally, you would get this by linking with the cpp lib.
Try adding the following in your code.

namespace std {

void terminate( void ) {

abort();

}

}

"hamza" <hamza.elkouch@polymtl.ca> wrote in message
news:fa294v$kmt$1@inn.qnx.com...
Quote:
Hi,
I'm trying to build an application using MHDDK to develop drivers for
PCI-6025E NI board.
I'm using the makefile pasted below.
When I build the projet I have these errors that I can't resolve.

make -k EXTRA_SUFFIXES=cpp all --file=U:/PFE/PCIDrivers/QMakefile9347.tmp

QCC -c -g main.cpp

QCC -Vgcc_ntox86 -g osiBus.o tSTC.o tESeries.o main.o -o main

main.o: In function `tSTC::tAI_START_STOP_Select::setRegister(unsigned
short, nMDBG::tStatus2 *)':

/cygdrive/u/PFE/PCIDrivers/tSTC.ipp(.text+0x2e5): undefined reference to
`std::terminate(void)'

main.o: In function `test(iBus *)':

/cygdrive/u/PFE/PCIDrivers/main.cpp:160: undefined reference to
`std::terminate(void)'

cc: C:/QNX630/host/win32/x86/usr/bin/ntox86-ld caught signal 1

make: *** [main] Error 1

make: Target `all' not remade because of errors.

I searched for a file contaning the function terminate but in vain. None
of all the files I'm using in my project contains the function std::
terminate().
If someone could help resolve this problem it will be very appreciated.
Thank you
 
 View user's profile Send private message  
Reply with quote Back to top
hamza
Post subject: Re: std::termiante() undefined reference.  PostPosted: Sep 11, 2007 - 07:40 PM
Guest





Thank you
i added the code to mine and it works perfectly.
Thanks
"Garry Turcotte" <garry@qnx.com> wrote in message
news:fa2rng$shl$1@inn.qnx.com...
Quote:
Normally, you would get this by linking with the cpp lib.
Try adding the following in your code.

namespace std {

void terminate( void ) {

abort();

}

}

"hamza" <hamza.elkouch@polymtl.ca> wrote in message
news:fa294v$kmt$1@inn.qnx.com...
Hi,
I'm trying to build an application using MHDDK to develop drivers for
PCI-6025E NI board.
I'm using the makefile pasted below.
When I build the projet I have these errors that I can't resolve.

make -k EXTRA_SUFFIXES=cpp all --file=U:/PFE/PCIDrivers/QMakefile9347.tmp

QCC -c -g main.cpp

QCC -Vgcc_ntox86 -g osiBus.o tSTC.o tESeries.o main.o -o main

main.o: In function `tSTC::tAI_START_STOP_Select::setRegister(unsigned
short, nMDBG::tStatus2 *)':

/cygdrive/u/PFE/PCIDrivers/tSTC.ipp(.text+0x2e5): undefined reference to
`std::terminate(void)'

main.o: In function `test(iBus *)':

/cygdrive/u/PFE/PCIDrivers/main.cpp:160: undefined reference to
`std::terminate(void)'

cc: C:/QNX630/host/win32/x86/usr/bin/ntox86-ld caught signal 1

make: *** [main] Error 1

make: Target `all' not remade because of errors.

I searched for a file contaning the function terminate but in vain. None
of all the files I'm using in my project contains the function std::
terminate().
If someone could help resolve this problem it will be very appreciated.
Thank you


 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.