User forums > Using Code::Blocks
Problem compiling sqlite3.c in wxSmith (C++) project
BlueHazzard:
i still would rename it.... wxWidgets is cpp and so it makes no (big) sense to use two different compilers...
osdt:
--- Quote from: kathbeau on March 10, 2015, 10:28:49 pm ---
--- Code: ---gcc -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -g -DSQLITE_THREADSAFE=0 -Wall -I/usr/include/wx-3.0 -c /work/DeleteMe/Test/sqlite3.c -o obj/Debug/sqlite3.o
...
from ./wx_pch.h:14,
from <command-line>:0:
--- End code ---
--- End quote ---
The option '-include wx_pch.h' forces the C-compiler to include C++ headers. Remove it from project/target compiler options.
kathbeau:
--- Quote from: osdt on March 10, 2015, 11:37:03 pm ---The option '-include wx_pch.h' forces the C-compiler to include C++ headers. Remove it from project/target compiler options.
--- End quote ---
THAT'S IT!! Thank you SO MUCH!!
Kathleen
Navigation
[0] Message Index
[*] Previous page
Go to full version