Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Direct X with g++

Name: Anonymous 2007-07-21 20:37 ID:WJNbuWBR

Has anyone here compiled a windows DirectX program using g++?  I'm getting lots of strange errors when I try to link a DirectX library -- but only when I call a function from it.

What would be very helpful is if someone could post a sample .cpp file and give me the command line options or makefile that you used to get it to compile and link under g++.

It could really just be something as bare bones as this:

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
//whatever DirectX includes are needed

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, char* cmdParam, int cmdShow)
{
    //Just a sample DirectX call, any will do
    HRESULT hr;
    DXGetErrorString(hr);

    return 0;
}

Name: Anonymous 2007-07-21 23:54 ID:GsX5trsZ


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List