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 20:40 ID:Heaven

Fail with Fail

Name: Anonymous 2007-07-21 20:40 ID:HEGXtByy

OP is a troll
do not feed the trolls.
do not feed the trolls.
do not feed the trolls.

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

Sigh.  How am I trolling?  Or am I just falling for another joke.

Name: Anonymous 2007-07-21 21:04 ID:8rVlnQ7z

>>4
troll

Name: Anonymous 2007-07-21 21:10 ID:Neo8+4BZ

>>3
Troll

Name: Anonymous 2007-07-21 22:05 ID:8rVlnQ7z

>>6
troll

Name: Anonymous 2007-07-21 23:47 ID:HEGXtByy

>>8
troll

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


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