Page Index Toggle Pages: 1
Topic Tools
Normal Topic [C++] Set up static SFmpqapi linker error (Read 3149 times)
Cinolt
Peon
*
Offline



Posts: 1
Joined: Feb 28th, 2010
[C++] Set up static SFmpqapi linker error
Feb 28th, 2010 at 7:32pm
Post Tools
Hi, I'm trying to set up static SFmpqapi but I keep getting a linker error: 

Code
Select All
y Project:(.text+0x464)||undefined reference to `_alloca_probe'| 



This is my C++ source: 

Code
Select All
#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
Location: The Sea of Chaos
Joined: May 11th, 2002
Re: [C++] Set up static SFmpqapi linker error
Reply #1 - Mar 5th, 2010 at 9:25pm
Post Tools
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

"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."
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools