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

Pages: 1-

GHC + static library

Name: Anonymous 2011-09-24 20:22

Hey /prog/. I'm trying to get ghc to link with a static library I made in Visual Studio (I don't usually use Windows, I'm just trying to build this program). Here's the library code:

extern "C" int f(int x) {
    return x + 1;
}


That's it, and I haven't messed with any build settings or anything. According to dumpbin it's exporting f.

I can link with other libraries, so I'm pretty sure that the problem is with how I'm building the library, and not how I'm calling ghc. This is probably not the best place to ask since it's mostly a MSVS question, but does anybody have any ideas?

Name: Anonymous 2011-09-24 23:58

>Visual Studio
There's your problem.

Name: Anonymous 2011-09-25 0:09

>>2
Clever. I don't like it either.

But I fixed it by disabling LTCG, so never mind.

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