1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(_file.obj) : error LNK2005: __lock_file already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(_file.obj) : error LNK2005: __unlock_file already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(crt0dat.obj) : error LNK2005: __cexit already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
1>libcmt.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR100.dll)
1>libcmt.lib(isctype.obj) : error LNK2005: __isctype already defined in MSVCRT.lib(MSVCR100.dll)
1>C:\Users\xx\Desktop\Program\RCM Program\RCM\Release\RCM.exe : fatal error LNK1169: one or more multiply defined symbols found
I have also read that that in order for the program to run in all computers I have to change the properties of the "Runtime Library" to Multi-threaded(/MT). When I do this I get an error that says that I cannot select this option when using "Common
Language Runtime Support" or "Pure MSIL Common Language Runtime Support" which are the ones that my program uses.
I also do not know how to make my input and output files paths generic. I have tried the path ".\\Archive.txt"
but it looks for the file based on where the Visual Studio project is created, not with respect to the executable.
Anyways, I know I am all over the place but I just wanted to explain what I have read and tried to get it to work. But to sum up, my questions are:
What is the easiest way to make my program run in all windows computers taking into account that it uses dll files? What path should I use for my input and output files?