Jump to content


CG with MinGW?


5 replies to this topic

#1 Mihail121

    Senior Member

  • Members
  • PipPipPipPip
  • 1050 posts

Posted 19 March 2006 - 08:21 PM

Hi! Does anyone have any idea how to use CG with MinGW or is it better to switch to GLSL?

Thanks!

#2 Groove

    New Member

  • Members
  • PipPip
  • 26 posts

Posted 20 March 2006 - 10:38 AM

There isn't special things to do, just link with the common cg.lib you use with Visual Studio.

#3 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 20 March 2006 - 07:34 PM

But MinGW uses a different library format than Visual Studio, doesn't it?
reedbeta.com - developer blog, OpenGL demos, and other projects

#4 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 812 posts

Posted 20 March 2006 - 09:35 PM

No. Borland has it's own format, but MinGW and VS use the same.

#5 Groove

    New Member

  • Members
  • PipPip
  • 26 posts

Posted 22 March 2006 - 01:05 PM

Nearly the same. All C libraries compiled with Visual C++ work fine under MinGW but it's not always the same with C++ library. Also, if you compile a library with MinGW, Visual C++ will not accept it.

#6 Reedbeta

    DevMaster Staff

  • Administrators
  • 4782 posts
  • LocationBellevue, WA

Posted 22 March 2006 - 06:08 PM

Yeah, name mangling differences will still prevent C++ libraries from being interchanged unless you use some utility to convert the mangling format.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users