On Thu, 14 Mar 2002, peter n squire wrote:
> My name is Peter Squire and I am senior computer science major at
> Mary Washington College in Fredericksburg, VA.
No way! I used to live in Fredericksburg as a kid. Visited MWC's library
millions of times. That's a fun place to live...
> problem is that I would like to run one of the examples(posted on the
> website) such as simple, but when I try to use either go or complie
> the file I receive linking errors(17 to be precise of the similar
> nature "simple.obj: error LNK2001 unresolved external symbol "some
> command call"). I am running windows 2000 OS, and have the 3.7 opengl
> glut library. If any one could please help, I would greatly appreciate
> it. Thanks,
The link errors are probably because you aren't including all the
necessary PLIB libraries in the project (the function name listed in the
error will tell you which one). Once you've figured out which library is
missing open the project settings (Alt+F7), click on the Link tab, and
under the Categories choose Input. Then add that library (e.g. ssg.lib) to
the list in "Object/library modules". In the "Additional library path" box
add in the directory where those libraries live. In addition to PLIB's
libraries you probably need the OpenGL and GLUT libraries listed (I just
checked and for 'simple' I have the following libraries added to what
MSVC++ already had: pui.lib fnt.lib sg.lib ul.lib opengl32.lib glu32.lib
glut32.lib)
It doesn't hurt to include more libraries than you need, so just to get
you going you could go ahead and list all of PLIB's libraries in your
project (and remove the unneeded ones later).
If you still have problems after this, include in your next post the full
list of error messages you got when you tried to build.
HTH,
Dave
|