Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6220925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:02:40+00:00 2026-05-24T08:02:40+00:00

Why does my program compile nicely with no warnings when I type g++ program_name

  • 0

Why does my program compile nicely with no warnings when I type g++ program_name but when I type gcc program_name I get screenfuls of undefined reference errors…

I am using the standard library quite a bit, here are my includes:

#include<string>
#include<vector>
#include<fstream>
#include<sstream>
#include<iomanip>
#include<iostream>
#include<algorithm>

using namespace std;

The reason I ask is I spent all this time developing a solution for a codeeval.com challange. It works perfectly when compiled with g++, but won’t compile with gcc.

Long story short, when codeeval tries to run my stuff, I get a score of 0 (!) although I have no idea how they are going about testing submissions… They just say: Your program did not pass all the test cases or there may have been warnings printed out at runtime.

Of course, I have no idea how they are compiling it… They do say:

You submissions are executed in a *NIX type environment. Assume softwares/shells etc are in their standard locations. Nothing else.

(since the have a typo in their submission guidlines, might other stuff be up?)

They also say they accept solutions for C++ 4.3.4. I am running cywin and 4.3.4 is the version of my gcc.

Has anyone else ever had a problem with submitting C++ code to codeeval.com?

I’m trying not to be super frustrated, but at this point they seem more like codeevil.com to me…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:02:41+00:00Added an answer on May 24, 2026 at 8:02 am

    gcc doesnt link in the standard c++ libraries by default. Either add -lstdc++ to the link line, or just compile with g++.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I compile a program using just gcc code.c There are no messages, and
For some reason the following doesn't crash like my program does, but I'm pretty
Why doesn't this C-program compile and what does the err messages mean: #include <stdio.h>
I have a Java program when I compile it I get the following error
I am trying to parse a given textfile, but so far, my program does
I'm trying to compile a program using a third party library, Omnet++ in my
i am trying to compile my program where i am using the functions like
I want to compile a program using the standard ./configure , make, make install.
I don't understand why the following small console application does not compile: program Project1;
When using the windows SDK to compile a program writen in C++, if I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.