user@user-VirtualBox ~/Desktop/FirmwareDownloader-master $ make
builtin_rootca.der
main.cpp
arm-none-eabi-g++ -MMD -MP -MF /home/user/Desktop/FirmwareDownloader-master/build/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/home/user/Desktop/FirmwareDownloader-master/include -I/opt/devkitpro/libctru/include -I/home/user/Desktop/FirmwareDownloader-master/build -DARM11 -D_3DS -fno-rtti -fno-exceptions -std=c++11 -c /home/user/Desktop/FirmwareDownloader-master/source/main.cpp -o main.o
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp: In function 'Result DownloadFile(std::__cxx11::string, std::ofstream&)':
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:81:32: error: 'HTTPC_METHOD_GET' was not declared in this scope
httpcOpenContext(&context, HTTPC_METHOD_GET, (char *)url.c_str(), 1);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp: In function 'Result network_request(char*, char*, std::ofstream&)':
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:259:21: error: aggregate 'network_request(char*, char*, std::ofstream&)::addrinfo hints' has incomplete type and cannot be defined
struct addrinfo hints;
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:264:5: error: 'sslcContext' was not declared in this scope
sslcContext sslc_context;
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:274:45: error: invalid application of 'sizeof' to incomplete type 'network_request(char*, char*, std::ofstream&)::addrinfo'
memset(&hints, 0, sizeof(struct addrinfo));
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:278:53: error: 'getaddrinfo' was not declared in this scope
if(getaddrinfo(hostname, "443", &hints, &resaddr)!=0)
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:285:76: error: invalid use of incomplete type 'struct network_request(char*, char*, std::ofstream&)::addrinfo'
r(resaddr_cur = resaddr; resaddr_cur!=NULL; resaddr_cur = resaddr_cur->ai_next)
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:259:12: note: forward declaration of 'struct network_request(char*, char*, std::ofstream&)::addrinfo'
struct addrinfo hints;
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:287:39: error: invalid use of incomplete type 'struct network_request(char*, char*, std::ofstream&)::addrinfo'
if(connect(sockfd, resaddr_cur->ai_addr, resaddr_cur->ai_addrlen)==0)br
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:259:12: note: forward declaration of 'struct network_request(char*, char*, std::ofstream&)::addrinfo'
struct addrinfo hints;
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:287:61: error: invalid use of incomplete type 'struct network_request(char*, char*, std::ofstream&)::addrinfo'
if(connect(sockfd, resaddr_cur->ai_addr, resaddr_cur->ai_addrlen)==0)br
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:259:12: note: forward declaration of 'struct network_request(char*, char*, std::ofstream&)::addrinfo'
struct addrinfo hints;
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:290:25: error: 'freeaddrinfo' was not declared in this scope
freeaddrinfo(resaddr);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:299:63: error: 'sslcCreateRootCertChain' was not declared in this scope
ret = sslcCreateRootCertChain(&RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:307:115: error: 'sslcAddTrustedRootCA' was not declared in this scope
rtChain_contexthandle, (u8*)builtin_rootca_der, builtin_rootca_der_size, NULL);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:312:61: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:316:30: error: 'sslc_context' was not declared in this scope
ret = sslcCreateContext(&sslc_context, sockfd, SSLCOPT_Default, hostname);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:316:52: error: 'SSLCOPT_Default' was not declared in this scope
ret = sslcCreateContext(&sslc_context, sockfd, SSLCOPT_Default, hostname);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:316:77: error: 'sslcCreateContext' was not declared in this scope
ret = sslcCreateContext(&sslc_context, sockfd, SSLCOPT_Default, hostname);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:321:61: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:325:81: error: 'sslcContextSetRootCertChain' was not declared in this scope
ret = sslcContextSetRootCertChain(&sslc_context, RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:329:41: error: 'sslcDestroyContext' was not declared in this scope
sslcDestroyContext(&sslc_context);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:330:61: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:335:56: error: 'sslcStartConnection' was not declared in this scope
ret = sslcStartConnection(&sslc_context, NULL, NULL);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:339:41: error: 'sslcDestroyContext' was not declared in this scope
sslcDestroyContext(&sslc_context);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:340:61: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:345:73: error: 'sslcWrite' was not declared in this scope
ret = sslcWrite(&sslc_context, (u8*)http_netreq, strlen(http_netreq));
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:349:41: error: 'sslcDestroyContext' was not declared in this scope
sslcDestroyContext(&sslc_context);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:350:61: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:356:48: error: 'sslcRead' was not declared in this scope
sslcRead(&sslc_context, readbuf, 204, false); // discard HTTP header
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:363:45: error: 'sslcDestroyContext' was not declared in this scope
sslcDestroyContext(&sslc_context);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:364:65: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:372:37: error: 'sslcDestroyContext' was not declared in this scope
sslcDestroyContext(&sslc_context);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:373:57: error: 'sslcDestroyRootCertChain' was not declared in this scope
sslcDestroyRootCertChain(RootCertChain_contexthandle);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp: In function 'int main()':
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:576:16: error: too many arguments to function 'Result httpcInit()'
httpcInit(0);
^
In file included from /opt/devkitpro/libctru/include/3ds.h:42:0,
from /home/user/Desktop/FirmwareDownloader-master/source/main.cpp:18:
/opt/devkitpro/libctru/include/3ds/services/httpc.h:23:8: note: declared here
Result httpcInit(void);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:579:15: error: 'sslcInit' was not declared in this scope
sslcInit(0);
^
/home/user/Desktop/FirmwareDownloader-master/source/main.cpp:728:14: error: 'sslcExit' was not declared in this scope
sslcExit();
^
make[1]: *** [main.o] Error 1
make: *** [build] Error 2