Hi there!
I am running a SuSE Linux 9.0 machine.
These are the header files of the C++ pr0gram I am
trying to compile.
Header of the file Array.h
#ifndef _ARRAY_H_
#define _ARRAY_H_
#include <stdio.h>
template <class T>
class Array
{
...
}
#endif
Header of the file Array.cc
#include "Array.h"
template <class T>
Array<T> &Array<T>::operator=(const Array<T> &other)
{
...
}
Header of the file Array_templ_Main.cc
#include <iostream.h>
#include "Array.h"
int main()
{
...
}
The compilation command with GCC is as follows:
ntienjem@njueya:~/examples> gcc -o mar Array.cc
Array_templ_main.cc
I got the following errors:
In file included from
/usr/include/g++/backward/iostream.h:31,
from Array_templ_main.cc:1:
/usr/include/g++/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or
<sstream> instead of the deprecated header
<strstream.h>. To disable this warning use
-Wno-deprecated.
/tmp/cc5yDF9x.o(.text+0x5e): In function `main':
: undefined reference to `std::cout'
/tmp/cc5yDF9x.o(.text+0x63): In function `main':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'
/tmp/cc5yDF9x.o(.text+0x96): In function `main':
: undefined reference to `std::cout'
/tmp/cc5yDF9x.o(.text+0x9b): In function `main':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >::operator<<(int)'
/tmp/cc5yDF9x.o(.text+0xa4): In function `main':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'
/tmp/cc5yDF9x.o(.text+0x114): In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to
`std::ios_base::Init::Init[in-charge]()'
/tmp/cc5yDF9x.o(.text+0x143): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init
[in-charge]()'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiED1Ev+0x19):
In function `Array<int>::~Array [in-charge]()':
: undefined reference to `operator delete[](void*)'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEixEj+0x48):
In function `Array<int>::operator[](unsigned)':
: undefined reference to `std::cout'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEixEj+0x4d):
In function `Array<int>::operator[](unsigned)':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEixEj+0x56):
In function `Array<int>::operator[](unsigned)':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >::operator<<(unsigned)'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEixEj+0x5f):
In function `Array<int>::operator[](unsigned)':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEixEj+0x68):
In function `Array<int>::operator[](unsigned)':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >::operator<<(unsigned)'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEixEj+0x71):
In function `Array<int>::operator[](unsigned)':
: undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<<
<std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'
/tmp/cc5yDF9x.o(.gnu.linkonce.t._ZN5ArrayIiEC1Ej+0x27):
In function `Array<int>::Array[in-charge](unsigned)':
: undefined reference to `operator new[](unsigned)'
/tmp/cc5yDF9x.o(.eh_frame+0x12): undefined reference
to `__gxx_personality_v0'
collect2: ld returned 1 exit status
QUESTION:
Does someone know how to solve this problem?
Thanks so much in advance for your valuable hints.
=====
Ebenezer Ntienjem
mailto: ebenezer_ntienjem(a)yahoo.com
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
Dear my friends...
I am using postgres and SuSE 9.1 .
I created a table (named : sven1). I want to populate
this table with the record from another table (named :
appoinment).
but I don't know how to formulate the sql query.
I tried this one:
insert into sven1 (custid, noapp) values ((select
custid from appointment where done='N' and
salesid='6'), (select noapp from appointment where
done='N' and salesid='6'));
But I got this error in my psql console:
kv=# insert into sven1 (custid, noapp) values ((select
custid from appointment where done='N' and
salesid='6'), (select noapp from appointment where
done='N' and salesid='6'));
ERROR: more than one row returned by a subquery used
as an expression
kv=#
Anybody would be so nice to help me solving this
problem?
Thank you very much in advance.
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
Dear my friends...
I created a table (named : sven1). I want to populate
this table with the record from another table (named :
appoinment).
but I don't know how to formulate the sql query.
I tried this one:
insert into sven1 (custid, noapp) values ((select
custid from appointment where done='N' and
salesid='6'), (select noapp from appointment where
done='N' and salesid='6'));
But I got this error in my psql console:
kv=# insert into sven1 (custid, noapp) values ((select
custid from appointment where done='N' and
salesid='6'), (select noapp from appointment where
done='N' and salesid='6'));
ERROR: more than one row returned by a subquery used
as an expression
kv=#
Anybody would be so nice to help me solving this
problem?
Thank you very much in advance.
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
Can anyone tell me why SUSE 9.1 install didn't install make and the
gcc compilers? Or better yet, where I can find these things so that I
can get my system back up?
I just upgraded from RH9 and am having difficulty at the moment...
Thanks,
glenn
Hey Stefan,
I was wondering if you could clarify something for me. I'm developing
a YaST UI for a commercial product that includes ycp files for the ui
and perl SCR agents (that use the ycp.pm api). SuSE has GPL'd the YaST
toolkit but software that utilizes the toolkit is not considered
derived correct? (meaning if I write these modules then I am _not_
obligated to release them if my employer doesn't wish to).
Sorry if this seems an obvious question but I can't find any licensing
information in the Perl files or Yast code (other than in the RPM to
say it's all released under the GPL).
Thanks,
Dominic
> Hi,
> I am supposed to be developing a snapshot driver for Linux for backing up
> volumes. Is there an open source project or code base from where I can
start
> my development?
Linux LVM system does already support snapshotting volumes.
See http://www.linux.org/docs/ldp/howto/LVM-HOWTO/snapshotintro.html
Ciao,
Roberto
Hi,
I am supposed to be developing a snapshot driver for Linux for backing up
volumes. Is there an open source project or code base from where I can start
my development?
Regards,
Manu.
DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
I've ben thinking for a long time of buying a laptop for working on my
projectduring trips and overseas stays ... rather than renting desktops.
Needless to say I wish to rn SuSE. Up to last year most laptops were
shipped with Windows installed and vendors/makers denied any
responsibility about replacing Windows with SuSE satisfactorily.
Another drawback is the particular configuration I need. Basically I'm
looking for at least 1GB RAM, Pentiun IV or equivalent processor at least
3.06 GHz or faster. I aslso need the wireless network and a true model for
occasional dial-up connections. Last year i thought I had found a laptop
with the above characteristics but a better look at its components
revealed an extrmely slow access to the data bus which would result in
many CPU idle cycles.
During the last year laptops have evolved and maybe the current market
offers even more than I need ... I havent' found any time to follow up
unluckily ... recently I've been offered a laptop ECS which is to me a
totally unknown brand name. My understanding is that some third parties
buy the main components and then they assembly them together according to
the customer's requests .. which sounds pretty convenient.. But there may be a
pitfall I cannot see out of ignorance in this field.
Honestly I do not know whether it's better to buy a known brand like Dell,
HP, IMB, etc ... or save some money and still have a reliable laptop
specially made for me by these third parties ...
I'd greatly appreciate some advice
Maura EM
Hi,
I am looking for python-gtk 0.6.11 which was the last version compatible
with GTK1. The version available from Suse is 2.0.0 and that doesn't work
with the application I am trying to run. I was wondering if anyone has ideas
about where I can find the older version. I also need python-gtglarea but
this is likely contained in the same package.
Ned
I have generated a simple set of forms using the Wizards module and
coded it up by hand calling Wizard::SetContents and managing all the
events in a single event loop.
I modified the code to use the Sequencer module to utilize the ability
to modularize the code and manage the wizard sequence better; however,
it seemed to have a large performance reduction with the same forms.
The Sequencer is nice for managing the workflow for multiple forms but
it seems 3-4 times slower. Has anyone seen this?
Thanks,
dominic.