Results 1 to 13 of 13

Thread: Linker errors [Resolved]

Threaded View

  1. #1

    Thread Starter
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Linker errors [Resolved]

    Hello again all.

    Linker trouble this time. When i try to compile i get the following error:

    TerrainGen error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
    TerrainGen error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
    I havn't tried to override the new or delete operators or anything (i don't even use them). I am using 3 files in my C++ .Net 2003 project with header includes as shown:

    Code:
    Bitmap.h
    #include <stdio.h>
    #include <malloc.h>
    #include <windows.h>
    
    Main.cpp
    #include <afxwin.h>
    #include <windows.h>
    #include <d3dx9.h>
    
    Direct3D.cpp
    #include "Bitmap.h"
    #include <mmsystem.h>
    #include <d3dx9.h>
    Any ideas on what can be causing the error? I've fiddled around with the includes but can't seem to get the project to compile (either with error: indefined messages, or errors as above).

    Thanks for any help provided.
    Last edited by SLH; Dec 23rd, 2003 at 12:36 PM.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width