linking a 3rd party library

I am trying to add in a few 3rd party libraries to an existing project solution. I have no source code or knowledge on how the libraries were built (i.e. what run-time library was used). I have recieved the following errors and warnings:

1>CAPS_LIB.lib(PCEfunc.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>libcmt.lib(getenv.obj) : error LNK2005: _getenv_s already defined in MSVCRT.lib(MSVCR90.dll)  ***There are multiple of these errors
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcmt.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
1>C:\Program Files (x86)\BCI 2000 v3\prog\RelWithDebInfo\..\CAPSVRInterface.exe : fatal error LNK1120: 1 unresolved externals

CAPS_LIB.lib is one of the libraries I am trying to add in and it seems to be the one causing the problem. I believe I have added in all three libraries into the project solution correctly, but I can't seem to find a solution to these erros. Anyone have any ideas on what might be the problem?
Have you tried adding the library to your libraries path? Then compiling from there?

export LD_LIBRARY_PATH=/path/to/your/library:$LD_LIBRARY_PATH

Topic archived. No new replies allowed.