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 9237527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:33:16+00:00 2026-06-18T07:33:16+00:00

Hello am having a problem with my IDE Visual Studio 2012. I have started

  • 0

Hello am having a problem with my IDE Visual Studio 2012. I have started to learn SDL so am quite new to it and I am trying apply good structure when using SDL. The problems lays when I start using SDL with classes. It works fine if I type everything in main. I don’t know what am doing wrong can you help here are the errors

1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: _exit already defined in LIBCMT.lib (crt0dat.obj)
1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: ___iob_func already defined in LIBCMT.lib(_file.obj)
1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: _fclose already defined in LIBCMT.lib(fclose.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>C:\Users\User\documents\visual studio 2012\Projects\Nebula\Debug\Nebula.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Here is my code if there is something wrong

Main

#include <SDL.h>
#include "System.h"

int main(int argc, char* argv[])
{
    System RedObject;
    RedObject.SetUp();

    SDL_Quit();
    return 0;
}

Second file.

#include "System.h"

System::System()
{
}

System::~System()
{
}

void System::SetUp()
{
    SDL_Init(SDL_INIT_EVERYTHING); // The SDL Set up bit.
    SDL_Surface * screen;
    SDL_WM_SetCaption("Window Name", NULL);

    fullscreen = false;

    if(fullscreen == true)
    {
        screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE | SDL_FULLSCREEN);
    }
    else
    {
        screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
    }

    bool running = true;

    while(running)
    {
        SDL_Event Event;

        while(SDL_PollEvent(&Event))
        {
            switch(Event.type)

                case SDL_QUIT:
                    running = false;
                break;
        }

        SDL_Flip(screen);
    }
}

Second Files Header:

#ifndef SYSTEM_H
#define SYSTEM_H

#include <SDL.h>

class System
{
    private:
        int SHeight, SLenght;
        bool fullscreen;

    public:
        System();
        ~System();
        void SetUp();
};

#endif

Also I have set up the IDE code generator to run on Multi-threaded DLL (/MD) I don’t know if that is the problem. Sorry if this question has been already answered I could find an answer. Thank you in advance.

  • 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-06-18T07:33:17+00:00Added an answer on June 18, 2026 at 7:33 am

    I figured it out! This problem come up when you build objects with SDL and there are conflicts of two lib’s you need to ignore one of them. You need to ignore LIBCMT.lib. If you don’t know how to here are the steps:

    1. Open the project’s Property Pages.

    2. Click the Linker folder.

    3. Click the Input page.

    4. Select the Ignore Specific Default Libraries and go into the edit and put in LIBCMT.lib press ok then apply setting and you should be good to go.

    I hope this saves you days of pain 🙂

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

Sidebar

Related Questions

Hello i have just started learning mvc2 and im having a problem with the
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
Hello I am a new user to Python and I am having problem doing
Hello I am new at Haskell and i'm having problems trying to get this
Hello I am having this problem . I have the image for the problem.
Hello I am trying to create a brush but I am having problem with
Hello I just started CodeIgniter . I am having problem in loading view. My
Hello there i'm having a problem here i have an add and edit form
Hello there i am having little problem. I have two tables in my database.
Hello fellow stakoverflowers, I'm having a problem with PHP/Apache. I have an application that

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.