Tutorial 8 with C++ OpenGL?

IceFire 101 Apr 14, 2005 at 02:36

Hello, I’m currently in the process of building a OGG streaming engine for my OpenGL game. I’ve looked and messed around with the Tutorial 8 program, trying to implement it into C++ GL, but to my dismay I came to realize that the Vorbis DLLs are built from C code, and call the LIBC library, which affects my using it in C++. I was just wondering if there’s a way I could somehow get around that, without having to dig into the libraries and dlls to change stuff. I’ve tried rebuilding the DLLs as C++ builds, but it seems there’s a struct or something named class, which isn’t legal C++ code, and I don’t even dare touch it.

Anyhow, I’d be grateful to anybody who could offer me some help with this. I’ve been fussing over it for a while now, and I’m beginning to think I should just dump it all and move on to SDL or FMOD haha


1 Reply

Please log in or register to post a reply.

Reedbeta 167 Apr 14, 2005 at 03:20

The DLLs using a different library shouldn’t cause any problems. There might be a problem including a C header file into a C++ program due to name mangling, but that can be solved by placing extern “C” around the header. EG:

extern "C" {
  #include "ogg.h"