User forums > Help

Not obeying compiler flags

<< < (2/3) > >>

BlueHazzard:
Also check if /usr/wx3.0.5/include/wx/wx.h exists

stahta01:
Did you install the "devel" package? And you might need the "wxBase" "devel" package?

Tim S.

lissalissa:
wxBase is installed, although I built the library from source and am passing the flags spit out by wx-config from the directory where I built the library.  I checked, and yes the wx.h file does exist in the directory where it's expected as suggested.  I'm still getting the following build log:


--- Code: ----------------- Build: Debug in Patient Encoder (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/addtogroup.cpp" -o obj/Debug/addtogroup.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/deletegroup.cpp" -o obj/Debug/deletegroup.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/group.cpp" -o obj/Debug/group.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/main.cpp" -o obj/Debug/main.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/mainwindow.cpp" -o obj/Debug/mainwindow.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/newgroup.cpp" -o obj/Debug/newgroup.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/newptdialog.cpp" -o obj/Debug/newptdialog.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/patient.cpp" -o obj/Debug/patient.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/plist.cpp" -o obj/Debug/plist.o
g++ -Wall -fexceptions -g -I/usr/wx3.0.5/wx-dynamic-build/lib/wx/include/gtk3-unicode-3.0 -I/usr/wx3.0.5/include -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -c "/home/alissa/Documents/development/Patient Encoder/suffix.cpp" -o obj/Debug/suffix.o
g++  -o "bin/Debug/Patient Encoder" obj/Debug/addtogroup.o obj/Debug/deletegroup.o obj/Debug/group.o obj/Debug/main.o obj/Debug/mainwindow.o obj/Debug/newgroup.o obj/Debug/newptdialog.o obj/Debug/patient.o obj/Debug/plist.o obj/Debug/suffix.o  -L/usr/wx3.0.5/wx-dynamic-build/lib -pthread   -Wl,-rpath,/usr/wx3.0.5/wx-dynamic-build/lib -lwx_gtk3u_xrc-3.0 -lwx_gtk3u_html-3.0 -lwx_gtk3u_qa-3.0 -lwx_gtk3u_adv-3.0 -lwx_gtk3u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 
In file included from /home/alissa/Documents/development/Patient Encoder/main.cpp:3:
/home/alissa/Documents/development/Patient Encoder/mainwindow.h:5:10: fatal error: wx/wx.h: No such file or directory
    5 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/mainwindow.cpp:1:
/home/alissa/Documents/development/Patient Encoder/mainwindow.h:5:10: fatal error: wx/wx.h: No such file or directory
    5 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/newgroup.cpp:1:
/home/alissa/Documents/development/Patient Encoder/newgroup.h:7:10: fatal error: wx/wx.h: No such file or directory
    7 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/addtogroup.cpp:3:
In file included from /home/alissa/Documents/development/Patient Encoder/deletegroup.cpp:1:
/home/alissa/Documents/development/Patient Encoder/deletegroup.h:11:10: fatal error: wx/wx.h: No such file or directory
   11 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/group.h:12,
                 from /home/alissa/Documents/development/Patient Encoder/group.cpp:3:
/home/alissa/Documents/development/Patient Encoder/patient.h:10:10: fatal error: wx/wx.h: No such file or directory
   10 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/patient.cpp:3:
/home/alissa/Documents/development/Patient Encoder/patient.h:10:10: fatal error: wx/wx.h: No such file or directory
   10 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
/home/alissa/Documents/development/Patient Encoder/addtogroup.h:9:10: fatal error: wx/wx.h: No such file or directory
    9 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/suffix.h:13,
                 from /home/alissa/Documents/development/Patient Encoder/suffix.cpp:4:
/home/alissa/Documents/development/Patient Encoder/patient.h:10:10: fatal error: wx/wx.h: No such file or directory
   10 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/newptdialog.cpp:3:
/home/alissa/Documents/development/Patient Encoder/newptdialog.h:12:10: fatal error: wx/wx.h: No such file or directory
   12 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
 
In file included from /home/alissa/Documents/development/Patient Encoder/group.h:12,
                 from /home/alissa/Documents/development/Patient Encoder/plist.h:13,
                 from /home/alissa/Documents/development/Patient Encoder/plist.cpp:3:
/home/alissa/Documents/development/Patient Encoder/patient.h:10:10: fatal error: wx/wx.h: No such file or directory
   10 | #include <wx/wx.h>
      |          ^~~~~~~~~
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
10 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 

--- End code ---

sodev:
First of all, you have a very strange path setup of wxWidgets, it seems like you have set the prefix to /usr/wx3.0.5 and a custom lib location of wx-dynamic-build/lib. Now that you are self-building wxWidgets, why do you build that old version instead of the current release? Anyway, it looks like your include path to the main includes is wrong, i have only a recent wxWidgets 3.1 snapshot, but i don't think they changed the path setup. The proper include path should be /usr/wx3.0.5/include/wx-3.0.

lissalissa:

--- Quote from: sodev on March 30, 2022, 09:08:34 pm ---First of all, you have a very strange path setup of wxWidgets, it seems like you have set the prefix to /usr/wx3.0.5 and a custom lib location of wx-dynamic-build/lib. Now that you are self-building wxWidgets, why do you build that old version instead of the current release? Anyway, it looks like your include path to the main includes is wrong, i have only a recent wxWidgets 3.1 snapshot, but i don't think they changed the path setup. The proper include path should be /usr/wx3.0.5/include/wx-3.0.

--- End quote ---

So I've verified that the path is correct.  When I navigate to /usr/wx3.0.5/include there is indeed a wx folder containing wx.h, and it's clearly being pointed to by compiler flags so I am at a loss.  I tried installing wx and the devel libraries from the repository and use the flags spit out by wx-config for that, and it still doesn't work.  I added the include directory manually into the search paths option under build options in CB, still getting the same errors.  I'm not sure what else I'm supposed to be trying.

Also, I'm using the older version because my code breaks with the 3.1 lineage, and I'd love to figure that out too but first I gotta get this project compiling again.  I should say that this error started happening after I migrated the project from Ubuntu to Fedora.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version