Jump to content

Recommended Posts

what I need to compile a c++ fille on Linux, as far as I know I've created my file with extension cpp by using the text editor such as KWirter, and then compile it with gcc, but it gives me long error message

/tmp/ccb5v3PS.o: In function `__static_initialization_and_destruction_0(int, int)':

1.cpp:(.text+0x23): undefined reference to `std::ios_base::Init::Init()'

/tmp/ccb5v3PS.o: In function `__tcf_0':

1.cpp:(.text+0x6c): undefined reference to `std::ios_base::Init::~Init()'

/tmp/ccb5v3PS.o: In function `main':

1.cpp:(.text+0x8b): undefined reference to `std::allocator<char>::allocator()'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...