Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Confusing error(C++ mystery error)
Confusing error [message #1768338] Mon, 17 July 2017 15:55 Go to next message
Shawn Brown is currently offline Shawn BrownFriend
Messages: 1
Registered: July 2017
Junior Member
I'm getting this when I try to build a simple string project. There aren't any errors popping up in the code but now it's telling me that the .exe doesn't exist and it won't build anymore.

Anyone know what this is or how to fix it?


g++ -o NEW.exe "src\\NEW.o"
src\NEW.o:NEW.cpp:(.rdata$.refptr._ZN8MyString8strCountE[.refptr._ZN8MyString8strCountE]+0x0): undefined reference to `MyString::strCount'
collect2.exe: error: ld returned 1 exit status
Re: Confusing error [message #1768466 is a reply to message #1768338] Wed, 19 July 2017 08:20 Go to previous message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
It means that somewhere in your code is trying to call MyString::strCount (or otherwise reference), but that you don't have the definition for that method included.

You need to write it.

I say that, but I suspect there is something else going on here, but to tell we will need more details. If it is a single, simple cpp file, try posting it.
Previous Topic:Issue with performing updates after upgrading from Neon to Oxygen on Linux
Next Topic:ld terminated with signal 6
Goto Forum:
  


Current Time: Wed Apr 24 18:55:29 GMT 2024

Powered by FUDForum. Page generated in 0.21995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top