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

Name: Anonymous 2007-07-22 0:05 ID:uVVHm0SC

>>9,9,9,9,9,9,9,9,9,9,9,9,9,9
EXPERT SHIICHAN PROGRAMMER

Name: Anonymous 2007-07-22 0:20 ID:zsFPe+IM

>>9
HOLY SHIT WOW! INDEED EXPERT

Name: Anonymous 2007-07-22 23:48 ID:rFeS19RX

>>1
Use OpenGL instead of DirectShit, that way your code will be portable.

Name: Anonymous 2007-07-22 23:51 ID:oh77ZHGT

>>12

But then he'll have to actually use his brain.  Come on, we're in the age of Enterprise-based XNA Framework applications!

Name: Anonymous 2007-07-22 23:54 ID:QV0/C7Rh

OP could you post some code using directx features?

Name: Anonymous 2007-07-23 5:37 ID:wror5idJ


NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1)

Name: Anonymous 2007-07-23 6:36 ID:Heaven

NULL,

Name: Anonymous 2007-07-23 6:36 ID:ZQPnIQft

Name: Anonymous 2007-07-23 10:44 ID:zoTQ/Ekm

>>17
That's a macro in BBCode

Name: Anonymous 2009-01-14 14:43

is programming gay?

Name: Anonymous 2011-02-04 16:31

Name: Anonymous 2011-02-17 20:20

check my doubles

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