Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1
Send Topic Print
[C++] Set up static SFmpqapi linker error (Read 2961 times)
Cinolt
Peon
*
Offline



Posts: 1

[C++] Set up static SFmpqapi linker error
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??
Back to top
 
 
  IP Logged
ShadowFlare
Administrator/Lord of Nightmares
*****
Offline

The source of all
chaos

Posts: 125
The Sea of Chaos
Re: [C++] Set up static SFmpqapi linker error
Reply #1 - 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.
Back to top
 
 

-ShadowFlare

"My mind is my power. My power is my mind.
When uncorrupted by other elements, my mind is my pure power."

"I am a darkness beyond blackest pitch, deeper than the deepest night.
I am the Sea of Chaos. The source of all chaos.
That is how you describe me...
I am... the Lord of Nightmares."
WWW 46431561 ShadowFlareSFR   IP Logged
Pages: 1
Send Topic Print