Jump to content
  • Advertisement

Archived

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

skullfire

OGL .Net problems

This topic is 5340 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

Well, i installed .net on my pc, and I''m trying to port the engine I have on Dev c++ to Visual C++ 7(.Net). Now, I made a new Win32 project, a blank project btw, and then added all the files I had into the project. Once I did that, and fixed some errors, I received, when compiling, 517 lines of errors. all of them come from the gl\gl.h header which i just figured doesn''t recognize WINGDIAPI, basically a macro inside this header. I go like "wtf!", so I decided to put, before every include of the gl header, #include <windows.h> ... this solved the hundreds of error problems, but: 1) Isnt there any way I could just include gl/gl.h without having to put windows.h EVERYTIME? shouldn''t the header precompile only once? 2) Im still having some errors: c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(143): warning C4114: same type qualifier used more than once c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(143): error C2632: ''char'' followed by ''char'' is illegal c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinDef.h(143): warning C4091: ''typedef '' : ignored on left of ''unsigned char'' when no variable is declared If anyone can help me, I''d really apreciate it.

Share this post


Link to post
Share on other sites
Advertisement

  • 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!