[Question]compilation errors
Make outputs this:
builtin_rootca.der cmpblock.bin config.cpp arm-none-eabi-g++ -MMD -MP -MF /e/3DS/DEV/ctr-httpwn-master/build/config.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/e/3DS/DEV/ctr-httpwn-master/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I/e/3DS/DEV/ctr-httpwn-master/build -DARM11 -D_3DS -DVERSION="v1.0.1" -fno-rtti -fno-exceptions -std=gnu++11 -c /e/3DS/DEV/ctr-httpwn-master/source/config.cpp -o config.o tinyxml2.cpp arm-none-eabi-g++ -MMD -MP -MF /e/3DS/DEV/ctr-httpwn-master/build/tinyxml2.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/e/3DS/DEV/ctr-httpwn-master/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I/e/3DS/DEV/ctr-httpwn-master/build -DARM11 -D_3DS -DVERSION="v1.0.1" -fno-rtti -fno-exceptions -std=gnu++11 -c /e/3DS/DEV/ctr-httpwn-master/source/tinyxml2.cpp -o tinyxml2.o ctr-httpwn.c arm-none-eabi-gcc -MMD -MP -MF /e/3DS/DEV/ctr-httpwn-master/build/ctr-httpwn.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/e/3DS/DEV/ctr-httpwn-master/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I/e/3DS/DEV/ctr-httpwn-master/build -DARM11 -D_3DS -DVERSION="v1.0.1" -c /e/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c -o ctr-httpwn.o
Errors:
e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c: In function 'setuphax_http_sslc': e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:208:8: warning: implicit declaration of function 'sslcInit' [-Wimplicit-function-declaration] ret = sslcInit(httpc_sslc_handle); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:218:9: warning: implicit declaration of function 'sslcAddTrustedRootCA' [-Wimplicit-function-declaration] ret = sslcAddTrustedRootCA(RootCertChain_contexthandle, cert, certsize); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:222:2: warning: implicit declaration of function 'sslcExit' [-Wimplicit-function-declaration] sslcExit(); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c: In function 'http_haxx': e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:237:35: error: 'HTTPC_METHOD_POST' undeclared (first use in this function) ret = httpcOpenContext(&context, HTTPC_METHOD_POST, requrl, 1); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:237:35: note: each undeclared identifier is reported only once for each function it appears in e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:237:54: warning: passing argument 3 of 'httpcOpenContext' makes integer from pointer without a cast [-Wint-conversion] ret = httpcOpenContext(&context, HTTPC_METHOD_POST, requrl, 1); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:34:8: note: expected 'u32 {aka long unsigned int}' but argument is of type 'char ' Result httpcOpenContext(httpcContext *context, char url, u32 use_defaultproxy); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:237:8: error: too many arguments to function 'httpcOpenContext' ret = httpcOpenContext(&context, HTTPC_METHOD_POST, requrl, 1); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:34:8: note: declared here Result httpcOpenContext(httpcContext context, char url, u32 use_defaultproxy); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:240:8: warning: implicit declaration of function 'httpcAddPostDataAscii' [-Wimplicit-function-declaration] ret = httpcAddPostDataAscii(&context, "form_name", "form_value"); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:371:55: warning: passing argument 3 of 'httpcOpenContext' makes integer from pointer without a cast [-Wint-conversion] ret = httpcOpenContext(&context, HTTPC_METHOD_POST, requrl, 1); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:34:8: note: expected 'u32 {aka long unsigned int}' but argument is of type 'char ' Result httpcOpenContext(httpcContext *context, char url, u32 use_defaultproxy); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:371:9: error: too many arguments to function 'httpcOpenContext' ret = httpcOpenContext(&context, HTTPC_METHOD_POST, requrl, 1); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:34:8: note: declared here Result httpcOpenContext(httpcContext context, char url, u32 use_defaultproxy); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c: In function 'download_config': e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:411:35: error: 'HTTPC_METHOD_GET' undeclared (first use in this function) ret = httpcOpenContext(&context, HTTPC_METHOD_GET, url, 1); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:411:53: warning: passing argument 3 of 'httpcOpenContext' makes integer from pointer without a cast [-Wint-conversion] ret = httpcOpenContext(&context, HTTPC_METHOD_GET, url, 1); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:34:8: note: expected 'u32 {aka long unsigned int}' but argument is of type 'char ' Result httpcOpenContext(httpcContext *context, char url, u32 use_defaultproxy); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:411:8: error: too many arguments to function 'httpcOpenContext' ret = httpcOpenContext(&context, HTTPC_METHOD_GET, url, 1); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:34:8: note: declared here Result httpcOpenContext(httpcContext context, char url, u32 use_defaultproxy); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:426:8: warning: implicit declaration of function 'httpcAddTrustedRootCA' [-Wimplicit-function-declaration] ret = httpcAddTrustedRootCA(&context, cert, certsize); ^ e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c: In function 'httpwn_setup': e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:532:8: error: too many arguments to function 'httpcInit' ret = httpcInit(0x1000); ^ In file included from c:/devkitPro/libctru/include/3ds.h:42:0, from e:/3DS/DEV/ctr-httpwn-master/source/ctr-httpwn.c:8: c:/devkitPro/libctru/include/3ds/services/httpc.h:23:8: note: declared here Result httpcInit(void); ^ make[1]: *** [ctr-httpwn.o] Error 1 make: *** [build] Error 2
I cant figure why it fails compiling.
Your ctrulib needs updated(but note that it won't build with latest HEAD right now anyway either).
ughh, ok, thanks!