CHAI3DCHAI3D

normal Building fail when create an application with VS

More
23 Apr 2018 19:45 #1

Hi, all

I'm trying to creating an application with chai3D 3.2.0 under visual studio 2013 (64bit). I followed the steps listed in the section of " creating an application". When building the solution,it showed to have 257 errors and 8 warnings .
The typical error is like this : Error LNK2001: unresolved external symbol gluErrorString , Error LNK2001: unresolved external symbol_imp_glDisable
The typical warning is like this : Warning C4244: 'Initializing': coversaion from 'double' to ' int' ,possible loss of data

Would you kindly give some suggestions ?



Thank so much

Please Log in or Create an account to join the conversation.

More
08 Feb 2022 03:27 #2

I had the same problem. In my case, adding all of these:
glfw.lib
OpenGL32.lib
glu32.lib
chai3d.lib

solved the problem. In the documentation, there are only two of them, freeglut.lib and chai3d.lib, given. Since the 13-primitive example project is using GLFW, we don't need to include freeglut.lib. Instead write glfw.lib and the rest of the .lib files above.

I hope this helps someone!

Please Log in or Create an account to join the conversation.