I am trying to create my program using static linking.I download the lastest version of mingw curl.I followed these steps in the link
http://stackoverflow.com/questions/6243638/adding-static-libcurl-to-codeblocks-ideI add linker libaries these libaries:
curl, rtmp, idn, ssl, ssh2, crypto, z, ws2_32, wldap32, winmm, gdi32
in linker its is : -static
I add Project->Build options->Compiler settings->#defines
CURL_STATICLIB
In project->build options->search directories
libcurl include file
Everything seems fine except for there is a error like that.I followed the answer of stackoverflow question
What am i doing wrong
||Warning: .drectve `-aligncomm:"_sigx_app",2 ' unrecognized|
||Warning: .drectve `-aligncomm:"_sig_app",2' unrecognized|
..\..\Desktop\curl\lib\libcurl.a(mprintf.o)|| undefined reference to `__chkstk_ms'|
..\..\Desktop\curl\lib\libcurl.a(formdata.o)|| undefined reference to `__chkstk_ms'|
..\..\Desktop\curl\lib\libcurl.a(formdata.o)|| undefined reference to `__chkstk_ms'|
..\..\Desktop\curl\lib\libcrypto.a(cryptlib.o):cryptlib.c|| undefined reference to `__chkstk_ms'|
..\..\Desktop\curl\lib\libcrypto.a(bss_file.o):bss_file.c|| undefined reference to `__chkstk_ms'|
..\..\Desktop\curl\lib\libcrypto.a(err_prn.o):err_prn.c|| more undefined references to `__chkstk_ms' follow|
||=== Build finished: 6 errors, 2 warnings ===|