Error when linking GLFW

I am currently learning openGL. I use GLFW on my project. I cannot build the project successfully.

I build the project with this command

cl ..\code\main.cpp /I..\external\include opengl32.lib user32.lib gdi32.lib kernel32.lib shell32.lib ..\external\lib\glfw3.lib ..\external\lib\glew32s.lib 

It gives this ouput error

    LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library glfw3.lib(init.obj) : warning LNK4217: locally defined symbol __stdio_common_vsprintf imported in function _glfwInputError glfw3.lib(wgl_context.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(egl_context.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(monitor.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(vulkan.obj) : warning LNK4217: locally defined symbol calloc imported in function _glfwInitVulkan glfw3.lib(win32_window.obj) : warning LNK4217: locally defined symbol calloc imported in function windowProc glfw3.lib(win32_joystick.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(window.obj) : warning LNK4217: locally defined symbol calloc imported in function glfwCreateWindow glfw3.lib(input.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(win32_init.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(win32_monitor.obj) : warning LNK4049: locally defined symbol calloc imported glfw3.lib(wgl_context.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(egl_context.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(monitor.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(vulkan.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(win32_window.obj) : warning LNK4217: locally defined symbol free imported in function _glfwUnregisterWindowClassWin32 glfw3.lib(win32_joystick.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(window.obj) : warning LNK4217: locally defined symbol free imported in function glfwDestroyWindow glfw3.lib(input.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(win32_init.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(win32_monitor.obj) : warning LNK4049: locally defined symbol free imported glfw3.lib(monitor.obj) : warning LNK4217: locally defined symbol qsort imported in function refreshVideoModes glfw3.lib(win32_joystick.obj) : warning LNK4049: locally defined symbol qsort imported glfw3.lib(context.obj) : error LNK2019: unresolved external symbol __imp_strstr referenced in function _glfwStringInExtensionString glfw3.lib(win32_joystick.obj) : error LNK2001: unresolved external symbol __imp_strstr glfw3.lib(context.obj) : error LNK2019: unresolved external symbol __imp_strncmp referenced in function parseVersionString glfw3.lib(context.obj) : error LNK2019: unresolved external symbol __imp___stdio_common_vsscanf referenced in function sscanf glfw3.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_realloc referenced in function _glfwPlatformGetMonitors glfw3.lib(monitor.obj) : error LNK2019: unresolved external symbol __imp__strdup referenced in function _glfwAllocMonitor glfw3.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp__strdup glfw3.lib(win32_joystick.obj) : error LNK2001: unresolved external symbol __imp__strdup 

I am pretty sure that I use 64 bit VS 2015 glfw and glew library. I use build target for 64 bit.

Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 for x64 Copyright (C) Microsoft Corporation.  All rights reserved.  usage: cl [ option... ] filename... [ /link linkoption... ] 

Replay

Category: opengl Time: 2016-07-29 Views: 26
Tags: opengl glfw

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.133 (s). 12 q(s)