I have a big problem with my program in VC++ 6.0. Last wednesday the program runs perfectly, and the next morning this message appeared, within more code:
nafxcwd.lib(afxmem.obj) : error LNK2005: "void
* __cdecl operator new(unsigned int)"
(??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
nafxcwd.lib(afxmem.obj) : error LNK2005: "void
__cdecl operator delete(void *)"
(??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
Bin files/Control.exe : fatal error LNK1169:
one or more multiply defined symbols found
Error executing link.exe.
If you can help me out I'll apreciate it.
Thanks.
--
Rubén Collado Hernández
Universidad Politécnica de Madrid
c/ Ronda de Valencia, 3
28012 Madrid - Spain
Tel: +34 91 336 68 78
THANKS
THANKS
THANKS
My problem was succesfully resolved. I was getting crazy... during five days.
I have another problem, I need to link a library as static in Visual Studio 6.0 but i don't know how to do it. Could you help me ???
Thanks you again.
Best regards. I'll apreciate it.
"Martin Nolte [MS]" wrote:
Hi Ruben,thatthere's a Knowledgebase ArticlePRB: LNK2005 Errors When Link C Run-Time Libs Before MFC Libs
ID: Q148652
Hope this helps ! Best Regards, Martin NolteDev Support CEMicrosoft GmbH PRB: LNK2005 Errors When Link C Run-Time Libs Before MFC Libs
--
Hi Ruben, To build the static library:1. Build a static library using App Wizard "Win 32 Static Link Library" the settings of a static link library can be found in the MSDN article. Overview: Creating a Static Library. To link the static library to your exe choose one of the following ways:Thank you for your help, but this is not exactly what i wanted to do.
I have a library (both .lib and .dll), and i have to link that library statically to my program (because i have to send the program to people without that .dll), but i don't know how to do it.
Jose Felix Hernandez <jhe...@maxwell.fais.upm.es> wrote in message news:38478C25...@maxwell.fais.upm.es...
"Martin Nolte [MS]" wrote:Hi Ruben, To build the static library:1. Build a static library using App Wizard "Win 32 Static Link Library" the settings of a static link library can be found in the MSDN article. Overview: Creating a Static Library. To link the static library to your exe choose one of the following ways:Thank you for your help, but this is not exactly what i wanted to do.
I have a library (both .lib and .dll), and i have to link that library statically to my program (because i have to send the program to people without that .dll), but i don't know how to do it.
I have done it, but when i try to run the program on the other computer the next message appears "no file mil.dll...", i want to link the library mil.lib statically to the project.
Thank you.
Best regards.
dave wrote:
On the "Project Settings" "Link" tab Category: Input enter the name of your lib file in "Object/library modules". Note that this field is "space separated".
Jose Felix Hernandez <jhe...@maxwell.fais.upm.es> wrote in message news:38478C25...@maxwell.fais.upm.es..."Martin Nolte [MS]" wrote:Hi Ruben, To build the static library:1. Build a static library using App Wizard "Win 32 Static Link Library" the settings of a static link library can be found in the MSDN article. Overview: Creating a Static Library. To link the static library to your exe choose one of the following ways:Thank you for your help, but this is not exactly what i wanted to do.
I have a library (both .lib and .dll), and i have to link that library statically to my program (because i have to send the program to people without that .dll), but i don't know how to do it.
Jose Felix Hernandez wrote:
Hello,
Thank you.
Best regards.dave wrote:
I have a library (both .lib and .dll), and i have to link that library statically to my program (because i have to send the program to people without that .dll), but i don't know how to do it.
--
Jose F. Hernandez Barrio
Universidad Politécnica de Madrid
c/ Ronda de Valencia, 3
28012 Madrid - Spain
Tel: +34 91 336 68 86
If I'm mistaking the problem, I sorry.
Neil Gilmore
ra...@raito.com