I am trying to use application.cpp and supporting files. I get a long list of compile errors below and can't read through them. Has anyone seen this?
In file included from ../inc/spark_wiring.h:29:0,
from ../inc/spark_wiring_stream.h:36,
from ../inc/spark_wiring_client.h:24,
from ../inc/spark_wiring_tcpclient.h:29,
from HttpClient.h:5,
from HttpClient.cpp:1:
../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
warning "Defaulting to Release Build"
^
In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0,
from ../inc/spark_wlan.h:33,
from ../inc/main.h:38,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/spark_wiring_stream.h:36,
from ../inc/spark_wiring_client.h:24,
from ../inc/spark_wiring_tcpclient.h:29,
from HttpClient.h:5,
from HttpClient.cpp:1:
../../core-common-lib/CC3000_Host_Driver/socket.h:146:0: warning: "fd_set" redefined [enabled by default]
define fd_set _types_fd_set_cc3000
^
In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0,
from ../inc/spark_wiring_print.h:30,
from ../inc/spark_wiring_string.h:33,
from HttpClient.h:4,
from HttpClient.cpp:1:
/opt/gcc_arm/arm-none-eabi/include/sys/types.h:256:0: note: this is the location of the previous definition
define fd_set _types_fd_set
^
In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0,
from ../inc/spark_wlan.h:33,
from ../inc/main.h:38,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/spark_wiring_stream.h:36,
from ../inc/spark_wiring_client.h:24,
from ../inc/spark_wiring_tcpclient.h:29,
from HttpClient.h:5,
from HttpClient.cpp:1:
../../core-common-lib/CC3000_Host_Driver/socket.h:162:0: warning: "FD_SET" redefined [enabled by default]
define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp)
^
In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0,
from ../inc/spark_wiring_print.h:30,
from ../inc/spark_wiring_string.h:33,
from HttpClient.h:4,
from HttpClient.cpp:1:
/opt/gcc_arm/arm-none-eabi/include/sys/types.h:258:0: note: this is the location of the previous definition
^
In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0,
from ../inc/spark_wlan.h:33,
from ../inc/main.h:38,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/spark_wiring_stream.h:36,
from ../inc/spark_wiring_client.h:24,
from ../inc/spark_wiring_tcpclient.h:29,
from HttpClient.h:5,
from HttpClient.cpp:1:
../../core-common-lib/CC3000_Host_Driver/socket.h:163:0: warning: "FD_CLR" redefined [enabled by default]
define FD_CLR(fd, fdsetp) __FD_CLR (fd, fdsetp)
^
In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0,
from ../inc/spark_wiring_print.h:30,
from ../inc/spark_wiring_string.h:33,
from HttpClient.h:4,
from HttpClient.cpp:1:
/opt/gcc_arm/arm-none-eabi/include/sys/types.h:259:0: note: this is the location of the previous definition
^
In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0,
from ../inc/spark_wlan.h:33,
from ../inc/main.h:38,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/spark_wiring_stream.h:36,
from ../inc/spark_wiring_client.h:24,
from ../inc/spark_wiring_tcpclient.h:29,
from HttpClient.h:5,
from HttpClient.cpp:1:
../../core-common-lib/CC3000_Host_Driver/socket.h:164:0: warning: "FD_ISSET" redefined [enabled by default]
^
In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0,
from ../inc/spark_wiring_print.h:30,
from ../inc/spark_wiring_string.h:33,
from HttpClient.h:4,
from HttpClient.cpp:1:
/opt/gcc_arm/arm-none-eabi/include/sys/types.h:260:0: note: this is the location of the previous definition
^
In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0,
from ../inc/spark_wlan.h:33,
from ../inc/main.h:38,
from ../inc/spark_utilities.h:30,
from ../inc/spark_wiring.h:33,
from ../inc/spark_wiring_stream.h:36,
from ../inc/spark_wiring_client.h:24,
from ../inc/spark_wiring_tcpclient.h:29,
from HttpClient.h:5,
from HttpClient.cpp:1:
../../core-common-lib/CC3000_Host_Driver/socket.h:165:0: warning: "FD_ZERO" redefined [enabled by default]
define FD_ZERO(fdsetp) __FD_ZERO (fdsetp)
^
In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0,
from ../inc/spark_wiring_print.h:30,
from ../inc/spark_wiring_string.h:33,
from HttpClient.h:4,
from HttpClient.cpp:1:
/opt/gcc_arm/arm-none-eabi/include/sys/types.h:261:0: note: this is the location of the previous definition
define FD_ZERO(p) (extension (void)({ \
^
application.cpp:2:18: fatal error: lib2.h: No such file or directory
I am trying to use application.cpp and supporting files. I get a long list of compile errors below and can't read through them. Has anyone seen this?
In file included from ../inc/spark_wiring.h:29:0, from ../inc/spark_wiring_stream.h:36, from ../inc/spark_wiring_client.h:24, from ../inc/spark_wiring_tcpclient.h:29, from HttpClient.h:5, from HttpClient.cpp:1: ../../core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning "Defaulting to Release Build" [-Wcpp]
warning "Defaulting to Release Build"
^ In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0, from ../inc/spark_wlan.h:33, from ../inc/main.h:38, from ../inc/spark_utilities.h:30, from ../inc/spark_wiring.h:33, from ../inc/spark_wiring_stream.h:36, from ../inc/spark_wiring_client.h:24, from ../inc/spark_wiring_tcpclient.h:29, from HttpClient.h:5, from HttpClient.cpp:1: ../../core-common-lib/CC3000_Host_Driver/socket.h:146:0: warning: "fd_set" redefined [enabled by default]
define fd_set _types_fd_set_cc3000
^ In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0, from ../inc/spark_wiring_print.h:30, from ../inc/spark_wiring_string.h:33, from HttpClient.h:4, from HttpClient.cpp:1: /opt/gcc_arm/arm-none-eabi/include/sys/types.h:256:0: note: this is the location of the previous definition
define fd_set _types_fd_set
^ In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0, from ../inc/spark_wlan.h:33, from ../inc/main.h:38, from ../inc/spark_utilities.h:30, from ../inc/spark_wiring.h:33, from ../inc/spark_wiring_stream.h:36, from ../inc/spark_wiring_client.h:24, from ../inc/spark_wiring_tcpclient.h:29, from HttpClient.h:5, from HttpClient.cpp:1: ../../core-common-lib/CC3000_Host_Driver/socket.h:162:0: warning: "FD_SET" redefined [enabled by default]
define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp)
^ In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0, from ../inc/spark_wiring_print.h:30, from ../inc/spark_wiring_string.h:33, from HttpClient.h:4, from HttpClient.cpp:1: /opt/gcc_arm/arm-none-eabi/include/sys/types.h:258:0: note: this is the location of the previous definition
define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1L << ((n) % NFDBITS)))
^ In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0, from ../inc/spark_wlan.h:33, from ../inc/main.h:38, from ../inc/spark_utilities.h:30, from ../inc/spark_wiring.h:33, from ../inc/spark_wiring_stream.h:36, from ../inc/spark_wiring_client.h:24, from ../inc/spark_wiring_tcpclient.h:29, from HttpClient.h:5, from HttpClient.cpp:1: ../../core-common-lib/CC3000_Host_Driver/socket.h:163:0: warning: "FD_CLR" redefined [enabled by default]
define FD_CLR(fd, fdsetp) __FD_CLR (fd, fdsetp)
^ In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0, from ../inc/spark_wiring_print.h:30, from ../inc/spark_wiring_string.h:33, from HttpClient.h:4, from HttpClient.cpp:1: /opt/gcc_arm/arm-none-eabi/include/sys/types.h:259:0: note: this is the location of the previous definition
define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS)))
^ In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0, from ../inc/spark_wlan.h:33, from ../inc/main.h:38, from ../inc/spark_utilities.h:30, from ../inc/spark_wiring.h:33, from ../inc/spark_wiring_stream.h:36, from ../inc/spark_wiring_client.h:24, from ../inc/spark_wiring_tcpclient.h:29, from HttpClient.h:5, from HttpClient.cpp:1: ../../core-common-lib/CC3000_Host_Driver/socket.h:164:0: warning: "FD_ISSET" redefined [enabled by default]
define FD_ISSET(fd, fdsetp) __FD_ISSET (fd, fdsetp)
^ In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0, from ../inc/spark_wiring_print.h:30, from ../inc/spark_wiring_string.h:33, from HttpClient.h:4, from HttpClient.cpp:1: /opt/gcc_arm/arm-none-eabi/include/sys/types.h:260:0: note: this is the location of the previous definition
define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS)))
^ In file included from ../../core-common-lib/CC3000_Host_Driver/evnt_handler.h:38:0, from ../inc/spark_wlan.h:33, from ../inc/main.h:38, from ../inc/spark_utilities.h:30, from ../inc/spark_wiring.h:33, from ../inc/spark_wiring_stream.h:36, from ../inc/spark_wiring_client.h:24, from ../inc/spark_wiring_tcpclient.h:29, from HttpClient.h:5, from HttpClient.cpp:1: ../../core-common-lib/CC3000_Host_Driver/socket.h:165:0: warning: "FD_ZERO" redefined [enabled by default]
define FD_ZERO(fdsetp) __FD_ZERO (fdsetp)
^ In file included from /opt/gcc_arm/arm-none-eabi/include/stdio.h:47:0, from ../inc/spark_wiring_print.h:30, from ../inc/spark_wiring_string.h:33, from HttpClient.h:4, from HttpClient.cpp:1: /opt/gcc_arm/arm-none-eabi/include/sys/types.h:261:0: note: this is the location of the previous definition
define FD_ZERO(p) (extension (void)({ \
^ application.cpp:2:18: fatal error: lib2.h: No such file or directory
include "lib2.h"
^ compilation terminated. make: *\ [application.o] Error 1