Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LINKER ERROR #33

Open
erhankaradag opened this issue Aug 7, 2020 · 1 comment
Open

LINKER ERROR #33

erhankaradag opened this issue Aug 7, 2020 · 1 comment

Comments

@erhankaradag
Copy link

I'm getting some linker errors.

13>nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new_scalar.obj)
13>nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMT.lib(delete_scalar.obj)
13>nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in LIBCMT.lib(new_array.obj)
13>nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCMT.lib(delete_array.obj)
13>D:\fhDOOM\build\msvc2019-x86\bin\Release\fhDOOM.exe : fatal error LNK1169: one or more multiply defined symbols found
13>Done building project "fhDOOM.vcxproj" -- FAILED.

@revelator
Copy link

add LIBCMT to ignored libraries in linker settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants