ShadowFlare's Realm
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl
ShadowFlare's Realm Forums >> Program Development >> [C++] Set up static SFmpqapi linker error
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl?num=1267385522

Message started by Cinolt on Feb 28th, 2010, 7:32pm

Title: [C++] Set up static SFmpqapi linker error
Post by Cinolt on Feb 28th, 2010, 7:32pm

Hi, I'm trying to set up static SFmpqapi but I keep getting a linker error:


Code:
C:\MinGW\lib\SFmpq_static.lib(.\SFmpqlib___Win32_Release\SFmpqapi.obj):C:\Lina\My Project:(.text+0x464)||undefined reference to `_alloca_probe'|


This is my C++ source:


Code:
#include <SFmpq_static.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
   MPQHANDLE *hMPQ;
   SFileOpenArchive("C:\\Program Files\\StarCraft\\Maps\\(2)Challenger.scm", 0, 0, hMPQ);


   return 0;
}


I've linked SFmpq_static.lib properly and as you can see in the source I've included SFmpq_static.h. I'm using MinGW as my compiler. I really don't know why this happens, Google failed me. Can anybody tell me what I'm doing wrong??

Title: Re: [C++] Set up static SFmpqapi linker error
Post by ShadowFlare on Mar 5th, 2010, 9:25pm

You will probably need to compile your own with MinGW from the source code.  Refer to http://shadowflare.samods.org/projects/gitweb.cgi to get the current source code.

ShadowFlare's Realm » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.