Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DarkEliteHacker

Cg Compile Errors with Visual Studio 2k3

This topic is 5212 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone come up with a solution to compiling a Cg 1.2.1 program under Visual Studio 2003? "I can only show you the door, your the one who has to walk through it"

Share this post


Link to post
Share on other sites
Advertisement
I''m getting unresolved external errors for every cg function call, the first thing I did was make sure I was including the cg.lib and cggl.lib. Sure enough they were. I''m baffled, could it be a Visual Studio 2k3 compatibility error?

Share this post


Link to post
Share on other sites
Hmm I doubt they wouldn''t work with VS.Net 2003. You sure the linker is actually finding the libary files? Are you sure you didn''t specify the libaries for the debug build and then do a release build or the other way round?

Share this post


Link to post
Share on other sites
Erm... I do assume that by ''Cg Program'' you do mean ''regular Windows application which uses Cg,'' rather than ''Cg Vertex/Fragment program?''

Share this post


Link to post
Share on other sites
Superpig - Yeah it''s an SDL/OpenAL/OpenGL program using Cg.

Monder - I tried the #pragma comment(lib,"cg.lib") method that I use for all my other libraries (sdl, opengl and openal) and it didn''t work either. If I rename cg.lib to cg.lib_ for example it comes back and says it can''t find cg.lib so I''m certain its finding cg.lib and cgGL.lib but there must be something causing it to screw up.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!