Solved

Visual Studio 2008: LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

Posted on 2011-02-27
9
1,538 Views
Last Modified: 2012-05-11
Hi,

As I understand, i'm using different compiler settings (/MT, /MD etc) in different libraries.
But is there a way to see *what* library is causing the problem (i have lot's, don't know where to start).

Kind Regards,
Daniel Dekkers
0
Comment
Question by:DoZo1971
  • 5
  • 4
9 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 34992225
Could you post the linker output as well as the libs involved?
0
 

Author Comment

by:DoZo1971
ID: 34992294
I've added \VERBOSE:LIB as a linker command line option, that doesn't really help...

>Linking...
1>Searching libraries
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
1>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32d.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
1>    Searching C:\cThrough\SharedLib\debug\SharedLib.lib:
1>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
1>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
1>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprtd.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRTD.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMT.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
1>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32d.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
1>    Searching C:\cThrough\SharedLib\debug\SharedLib.lib:
1>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
1>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
1>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprtd.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRTD.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
1>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMT.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
1>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32d.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
1>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
1>Finished searching libraries
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Embedding manifest...
...
0
 
LVL 86

Expert Comment

by:jkr
ID: 34992306
The only ones in question seem to be

C:\cThroughLibs\glew-1.5.8\lib\glew32d.lib
C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib
C:\cThrough\SharedLib\debug\SharedLib.lib
C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib

with 'glew32d.lib' being the most likely candidate, since the trailing 'd' in the name points to a debug version. Can you try 'glew32.lib' if you have it or try to build the release version if possible?
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:DoZo1971
ID: 34992515
Yes, could very well be, glew is a "usual suspect".
A release rebuild-all added below.

First SharedLib.lib is generated, then the exe (Modules057.exe).
The release links with glew32.lib. The lnker shows the same error, but "recovers", so i actually get a working exe in release.

I've built glew myself, you have several flavours:
glew32.lib (shared, release)
glew32d.lib (shared, debug)
glew32s (static, release)
glew32sd.lib (static, release)

With some pain in my heart, i've recently accepted that i have to distribute dll's with my application, so i
try to build everything /MD (release) or /MDd (debug).

1>------ Rebuild All started: Project: SharedLib, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'SharedLib', configuration 'Release|Win32'
1>Compiling with CUDA Build Rule...
1>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\bin\nvcc.exe"    -arch sm_10 -ccbin "c:\Program Files\Microsoft Visual Studio 9.0\VC\bin"    -Xcompiler "/EHsc /W3 /nologo /O2 /Zi   /MT  "  -maxrregcount=32  --compile -o "Release\CudaSkrjabinField02.cu.obj" "c:\cThrough\SharedLib\SharedLib\CudaSkrjabinField02.cu"
1>CudaSkrjabinField02.cu
1>tmpxft_000009f8_00000000-3_CudaSkrjabinField02.cudafe1.gpu
1>tmpxft_000009f8_00000000-8_CudaSkrjabinField02.cudafe2.gpu
1>CudaSkrjabinField02.cu
1>tmpxft_000009f8_00000000-3_CudaSkrjabinField02.cudafe1.cpp
1>tmpxft_000009f8_00000000-14_CudaSkrjabinField02.ii
1>Compiling with CUDA Build Rule...
1>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\\bin\nvcc.exe"    -arch sm_10 -ccbin "c:\Program Files\Microsoft Visual Studio 9.0\VC\bin"    -Xcompiler "/EHsc /W3 /nologo /O2 /Zi   /MT  "  -maxrregcount=32  --compile -o "Release\CudaParticleField02.cu.obj" "c:\cThrough\SharedLib\SharedLib\CudaParticleField02.cu"
1>CudaParticleField02.cu
1>tmpxft_000012fc_00000000-3_CudaParticleField02.cudafe1.gpu
1>tmpxft_000012fc_00000000-8_CudaParticleField02.cudafe2.gpu
1>CudaParticleField02.cu
1>tmpxft_000012fc_00000000-3_CudaParticleField02.cudafe1.cpp
1>tmpxft_000012fc_00000000-14_CudaParticleField02.ii
1>Compiling...
1>AABB.cpp
1>World.cpp
1>WingedEdgeSphere.cpp
1>WindowOpenGL.cpp
1>.\WindowOpenGL.cpp(1468) : warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
1>.\WindowOpenGL.cpp(1489) : warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
1>WaveFile.cpp
1>Vertices.cpp
1>Vertex.cpp
1>VectorInt.cpp
1>Vector.cpp
1>UpdateState.cpp
1>UIHandle.cpp
1>Triangle.cpp
1>TimeValueTuple.cpp
1>Timer.cpp
1>Textures.cpp
1>TextureProcedural.cpp
1>TextureBitmap.cpp
1>Texture.cpp
1>TexCoord.cpp
1>SubObjectTile.cpp
1>Compiling...
1>SubObjectParticle.cpp
1>SubObjectBoid.cpp
1>StringList.cpp
1>StopWatch.cpp
1>States.cpp
1>SoundSources.cpp
1>SoundSource.cpp
1>SoundListener.cpp
1>SoundController.cpp
1>SoundBuffers.cpp
1>SoundBuffer.cpp
1>SkrjabinParticle.cpp
1>ShadowVolumes.cpp
1>ShadowVolume.cpp
1>ShaderVertex.cpp
1>Shaders.cpp
1>ShaderProgram.cpp
1>ShaderObject.cpp
1>ShaderFragment.cpp
1>Shader.cpp
1>Compiling...
1>Scripts.cpp
1>ScriptItem.cpp
1>Script.cpp
1>ScreenshotViewController.cpp
1>RegistryBase.cpp
1>Registry.cpp
1>RectInt2Ds.cpp
1>RectInt2D.cpp
1>Ray.cpp
1>Quaternion.cpp
1>PseudoRandom.cpp
1>ProgressBarViewController.cpp
1>Ppws.cpp
1>Ppw.cpp
1>PolarCoord3D.cpp
1>PointViewController.cpp
1>Points.cpp
1>Point.cpp
1>PlaylistItem.cpp
1>Playlist.cpp
1>Compiling...
1>Plane.cpp
1>PixelFormatDescriptor.cpp
1>PasswordGenerator.cpp
1>ParserPlaylist.cpp
1>ParserPAL.cpp
1>ParserGEO.cpp
1>Orientation.cpp
1>OpenGLMultiSampling.cpp
1>Observable.cpp
1>ObjectWESphereMapping.cpp
1>ObjectWESphere.cpp
1>ObjectWEElevationSphere.cpp
1>ObjectWedge.cpp
1>ObjectTriangleFanVertexArrays.cpp
1>ObjectTriangleFanVBO.cpp
1>ObjectTriangleFanDirectMode.cpp
1>ObjectTriangleFan.cpp
1>ObjectTriangle.cpp
1>ObjectTopStencil.cpp
1>ObjectTiledQuad.cpp
1>Compiling...
1>ObjectTiledCylinder.cpp
1>ObjectTiled.cpp
1>ObjectStencil.cpp
1>ObjectSpiral.cpp
1>ObjectSphericalStarField.cpp
1>ObjectSphereMapping.cpp
1>ObjectSphere.cpp
1>ObjectSlicedElevationSphere.cpp
1>ObjectSkrjabinField.cpp
1>ObjectSegmentedQuad.cpp
1>ObjectQuadTintedCorners.cpp
1>ObjectQuadStrip.cpp
1>ObjectQuadSequence.cpp
1>ObjectQuadPalette.cpp
1>ObjectQuadBillboarded.cpp
1>ObjectQuad.cpp
1>ObjectPolyLine.cpp
1>ObjectPolygon.cpp
1>ObjectParticleFieldWired.cpp
1>ObjectParticleField.cpp
1>Compiling...
1>ObjectParticleCloud.cpp
1>ObjectParticleBaseGeometry.cpp
1>ObjectMesh.cpp
1>ObjectLineStrip.cpp
1>ObjectLineSet.cpp
1>ObjectKBSpline.cpp
1>ObjectHemisphere.cpp
1>ObjectGroupStateChanger.cpp
1>ObjectGroupShader.cpp
1>ObjectGroupIPSpecific.cpp
1>ObjectGroupBSPTree.cpp
1>ObjectGroup.cpp
1>ObjectFlockOctree.cpp
1>ObjectFlock.cpp
1>ObjectElevationSphere.cpp
1>ObjectElevationGrid.cpp
1>ObjectDiscArc.cpp
1>ObjectDisc.cpp
1>ObjectCylinder.cpp
1>ObjectCrossSectionMapping.cpp
1>Compiling...
1>ObjectCrossSection.cpp
1>ObjectCreator.cpp
1>ObjectCoordinateAxes.cpp
1>ObjectColorCube.cpp
1>ObjectCityRing.cpp
1>ObjectBox.cpp
1>ObjectArc.cpp
1>Object.cpp
1>NetworkClient.cpp
1>NetworkCatcher.cpp
1>Network.cpp
1>Mouse.cpp
1>ModifierWiiMoteOrientation.cpp
1>Modifiers.cpp
1>ModifierQuadraticIncrease.cpp
1>ModifierOscillateSquare.cpp
1>ModifierOscillateSinShiftDelay.cpp
1>ModifierOscillateSinShift.cpp
1>ModifierOscillateSinFlattened.cpp
1>ModifierOscillateSin.cpp
1>Compiling...
1>ModifierOscillateLambda.cpp
1>ModifierOscillateFourierDhk.cpp
1>ModifierOscillateDhk.cpp
1>ModifierOscillateCosShift.cpp
1>ModifierOscillateCos.cpp
1>ModifierLinearIncrease.cpp
1>ModifierLinearDecrease.cpp
1>ModifierLifeCycleLinear.cpp
1>ModifierDiscreteValues.cpp
1>Modifier.cpp
1>MiiMote.cpp
1>Midi.cpp
1>Materials.cpp
1>Material.cpp
1>MappingTetris.cpp
1>Mappings.cpp
1>MappingPpwColAp.cpp
1>MappingOrthoWaves.cpp
1>MappingMeerrijk.cpp
1>MappingCWeeber.cpp
1>Compiling...
1>Mapping.cpp
1>Map.cpp
1>MainController.cpp
1>ListViewController.cpp
1>lineintersect_utils.cpp
1>LimitFloat.cpp
1>Lights.cpp
1>Light.cpp
1>Joystick.cpp
1>IPAddress.cpp
1>IntList.cpp
1>ImageMap.cpp
1>IdFactory.cpp
1>Gravity.cpp
1>FrameBufferObject.cpp
1>ForceObjects.cpp
1>FontBitmaps.cpp
1>FontBitmap.cpp
1>FlowVortex.cpp
1>FlowUniform.cpp
1>Compiling...
1>FlowSource.cpp
1>Flows.cpp
1>FlowDoublet.cpp
1>Flow.cpp
1>FlockBehaviours.cpp
1>FlockBehaviour.cpp
1>EssentialsIO.cpp
1>Essentials.cpp
1>DXFWriter.cpp
1>CTL.cpp
1>CryptorW.cpp
1>ColorRGBRangeScripts.cpp
1>ColorRGBRangeScriptItem.cpp
1>ColorRGBRangeScript.cpp
1>ColorRGBRanges.cpp
1>ColorRGBRange.cpp
1>ColorPalettes.cpp
1>ColorPalette.cpp
1>ColorDisplacementVector.cpp
1>ColorB.cpp
1>Compiling...
1>ColorApertures.cpp
1>ColorAperture.cpp
1>Color.cpp
1>CameraWiiMote.cpp
1>CameraSkyCar.cpp
1>CameraScripted.cpp
1>Cameras.cpp
1>CameraQuake.cpp
1>CameraOrbitTransition.cpp
1>CameraOrbit.cpp
1>CameraFly.cpp
1>CameraElite.cpp
1>Camera.cpp
1>ByteArray.cpp
1>BSPTree.cpp
1>BoundedSpace.cpp
1>BoidsOctree.cpp
1>Boids.cpp
1>BatchLoadController.cpp
1>BasicScanner.cpp
1>Compiling...
1>BasicParser.cpp
1>AnimationSequence.cpp
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Creating library...
1>Build log was saved at "file://c:\cThrough\SharedLib\SharedLib\Release\BuildLog.htm"
1>SharedLib - 0 error(s), 2 warning(s)
2>------ Rebuild All started: Project: Modules057, Configuration: Release Win32 ------
2>Deleting intermediate and output files for project 'Modules057', configuration 'Release|Win32'
2>Compiling...
2>WinMain.cpp
2>Controller.cpp
2>Compiling resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
2>Copyright (C) Microsoft Corporation.  All rights reserved.
2>Linking...
2>Searching libraries
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMT.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMT.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>Finished searching libraries
2>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
2>Generating code
2>Finished generating code
2>Searching libraries
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMT.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
2>Finished searching libraries
2>Searching libraries
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\MSVCRT.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\LIBCMT.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\opengl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\glu32.lib:
2>    Searching C:\cThroughLibs\glew-1.5.8\lib\glew32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comctl32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\WS2_32.lib:
2>    Searching C:\cThrough\SharedLib\release\SharedLib.lib:
2>    Searching C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\lib\Win32\cudart.lib:
2>    Searching C:\cThroughLibs\OpenAL 1.1 SDK\libs\Win32\openal32.lib:
2>    Searching C:\cThroughLibs\freealut-1.1.0-bin\lib\alut.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
2>    Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
2>    Searching c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\msvcprt.lib:
2>Finished searching libraries
2>Embedding manifest...
2>Build log was saved at "file://c:\cThrough\Modules\Modules057\Modules057\Release\BuildLog.htm"
2>Modules057 - 0 error(s), 1 warning(s)
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
0
 
LVL 86

Expert Comment

by:jkr
ID: 34992563
Hm, stupid question - what happens if you use '/NODEFAULTLIB:libcmt'? Maybe that sheds in some more light..
0
 

Author Comment

by:DoZo1971
ID: 34992619
Where do i add that line?

I'm confused about glew
If i look at the glew project...
(http://glew.sourceforge.net/, sources)
i get two versions: glew_static and glew_shared.

glew_static, release is Multi-threaded (/MT)
glew_static, debug is Multi-threaded Debug DLL (/MDd)
glew_shared, release is Multi-threaded (/MT)
glew_shared, debug is Multi-threaded Debug DLL (/MDd)

I would expect that the shared version would use the DLL (both debug and release) and the static version wouldn't (both debug and release). But not the case.
0
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 34992674
Open your project's properties (ALT+F7), go to "Configuration Properties|Linker|Input" and enter the lib under "Ignore specific Library".
0
 

Author Comment

by:DoZo1971
ID: 35043569
Didn't get it working, so i turned to CMAKE to generate the project files. CMAKE does something right that i'm doing wrong ;-) so now it builds.
0
 

Author Closing Comment

by:DoZo1971
ID: 35043573
Thanks.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Compile GLUT with Visual Studio 2015 1 148
What is sub-make ? 2 61
c++, dynamic object by json 1 42
Precision Problem in C++ 7 33
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question