[C++] Problem with compiling my program.

Z

ZikO

Hello.

Would you like anyone of you to looke through my program, which is on this
address:

http://republika.pl/zebik/video_Stack_en.cpp

and check where I have made a mistake? I use GNU C++ compiler (i mean CYGWIN -
im not sure whether it's the same, to be honest). I don't know what is going on
but during compiling a lot of strange notes apeear on screen:

(...)
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:
..text$_ZN7lending5printEv[lending::print()]+0x49)
: undefined reference to `std::cout'
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:(.text$_ZN7lending5printEv[lending::print()]+0x4e)
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
std::eek:perator<< <std::char_traits<char> >(s
td::basic_ostream<char, std::char_traits<char> >&, char const*)'
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:(.text$_ZN7lending5printEv[lending::print()]+0x69)
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
std::eek:perator<< <std::char_traits<char> >(s
td::basic_ostream<char, std::char_traits<char> >&, char const*)'
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:(.text$_ZN7lending5printEv[lending::print()]+0x71)
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >&
std::endl<char, std::char_traits<char> >(st
d::basic_ostream<char, std::char_traits<char> >&)'
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:(.text$_ZN7lending5printEv[lending::print()]+0x79)
: undefined reference to `std::basic_ostream said:
>::eek:perator<<(std::basic_ostream<char, std::ch
ar_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:(.text$_ZN7lending5printEv[lending::print()]+0x88)
: undefined reference to `std::cout'
(...)

I think probplem is with my pointers but I can't find it. Help me please.

Regards.
 
V

Victor Bazarov

ZikO said:
Would you like anyone of you to looke through my program, which is on
this address:

http://republika.pl/zebik/video_Stack_en.cpp

and check where I have made a mistake? I use GNU C++ compiler (i mean
CYGWIN - im not sure whether it's the same, to be honest). I don't
know what is going on but during compiling a lot of strange notes
apeear on screen:
(...)
/cygdrive/c/DOCUME~1/zibi/LOCALS~1/Temp/ccPPJLMe.o:video_stack_en.cpp:
.text$_ZN7lending5printEv[lending::print()]+0x49)
undefined reference to `std::cout'
[..]

That sounds like a problem with your compiler. Are you using g++ to link
or gcc? The difference between them is probably off-topic, just make sure
you use g++. And make sure you're supplying all the necessary libraries
to it. How? I don't know. See 'gnu.g++.help'.

V
 
Z

ZikO

That sounds like a problem with your compiler. Are you using g++ to link
or gcc? The difference between them is probably off-topic, just make sure
you use g++. And make sure you're supplying all the necessary libraries
to it. How? I don't know. See 'gnu.g++.help'.
V

Nope, Ive been using gcc. oh goodness me, I spent so much time to resolve this
problem.
Thanks a lot, Mate! I can't believe it was simply this: gcc, no g++. thanks.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top