eugeneie / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Have some problems with undefined reference to... I can't find Anything for this problem! I'm a newby, please help!!!! #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make all

What is the expected output? What do you see instead?
succesfull test

What version of Google Test are you using? On what operating system?
-the latest version of Google Tests (I downloaded two days ago)
-Ubuntu 10.4 in a VM from Oracle

Please provide any additional information below, such as a code snippet.
here is the error:

user@user-laptop:~/Desktop/Pro (master)$ make clean
rm *.o Helloworld
rm: Entfernen von „Helloworld“ nicht möglich: No such file or directory
make: *** [clean] Fehler 1
user@user-laptop:~/Desktop/Pro (master)$ make all
g++ -c Helloworld.cpp -lgtest -lgmock -lpthread 
g++ -o Helloworld Helloworld.o -lgtest -lgmock -lpthread
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
/usr/local/lib/libgmock.so: undefined reference to 
`testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity, 
char const*, int)'
/usr/local/lib/libgmock.so: undefined reference to 
`testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type, 
char const*, int, char const*)'
/usr/local/lib/libgmock.so: undefined reference to 
`testing::internal::AssertHelper::~AssertHelper()'
/usr/local/lib/libgmock.so: undefined reference to 
`testing::internal::IsTrue(bool)'
/usr/local/lib/libgmock.so: undefined reference to 
`testing::internal::SkipPrefix(char const*, char const**)'
/usr/local/lib/libgmock.so: undefined reference to 
`testing::internal::GTestLog::~GTestLog()'
collect2: ld returned 1 exit status
make: *** [Helloworld] Fehler 1

Original issue reported on code.google.com by m-em...@hotmail.de on 21 Oct 2010 at 12:26

GoogleCodeExporter commented 9 years ago
The issue tracker is for reporting defects and requesting enhancements in in 
the library. Please post questions on our mailing list. More people will see 
them there and will be able to respond. See 
http://code.google.com/p/googletest/wiki/FAQ#My_question_is_not_covered_in_your_
FAQ! for posting guidelines.

Original comment by vladlosev on 29 Oct 2010 at 4:00