News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[Resolved] NassiShneiderman Contriibuted Plugin Faillure

Started by Frank_CB, October 09, 2022, 08:34:11 PM

Previous topic - Next topic

Frank_CB

Unable to build 32-bit or 64-bit versions of C::B on Windows 10 (64-bit) platform because NassiShneiderman contributed plugin fails to compile using boost_1_80_0. I am using GCC 12.0.2 supplied by Msys2 packages mingw32 and mingw64.

The snippet of the build log that follows shows that the global variable 'boost' is defined correctly (?)
g++.exe -std=gnu++11 -g -pipe -mthreads -fmessage-length=0 -fexceptions -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DwxUSE_UNICODE -DBOOST_SYSTEM_NO_DEPRECATED -w -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -IC:\wxWidgets-3.2.1\include -IC:\wxWidgets-3.2.1\lib\gcc_dll\mswu -IC:\boost\boost_1_80_0\boost\spirit\include -c C:\projectsx32\12969\src\plugins\contrib\NassiShneiderman\cbEditorPanel.cpp -o ..\..\..\.objs32\plugins\contrib\NassiShneiderman\cbEditorPanel.o
g++.exe -std=gnu++11 -g -pipe -mthreads -fmessage-length=0 -fexceptions -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DwxUSE_UNICODE -DBOOST_SYSTEM_NO_DEPRECATED -w -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -IC:\wxWidgets-3.2.1\include -IC:\wxWidgets-3.2.1\lib\gcc_dll\mswu -IC:\boost\boost_1_80_0\boost\spirit\include -c C:\projectsx32\12969\src\plugins\contrib\NassiShneiderman\commands.cpp -o ..\..\..\.objs32\plugins\contrib\NassiShneiderman\commands.o
g++.exe -std=gnu++11 -g -pipe -mthreads -fmessage-length=0 -fexceptions -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DwxUSE_UNICODE -DBOOST_SYSTEM_NO_DEPRECATED -w -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -IC:\wxWidgets-3.2.1\include -IC:\wxWidgets-3.2.1\lib\gcc_dll\mswu -IC:\boost\boost_1_80_0\boost\spirit\include -c C:\projectsx32\12969\src\plugins\contrib\NassiShneiderman\CParser.cpp -o ..\..\..\.objs32\plugins\contrib\NassiShneiderman\CParser.o
C:\projectsx32\12969\src\plugins\contrib\NassiShneiderman\CParser.cpp:5:10: fatal error: boost/spirit/include/classic.hpp: No such file or directory
    5 | #include <boost/spirit/include/classic.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Process terminated with status 1 (70 minute(s), 57 second(s))

Process terminated with status 0 (71 minute(s), 11 second(s))
1 error(s), 0 warning(s) (71 minute(s), 11 second(s))


Both Cparser.cpp and classic.hpp are in the 'C:\boost' folder or sub-folders.

Does anyone have any idea as to why i am getting these failures?

Regards.

AndrewCot

Have you looked at why the include file cannot be found?Have you checked your include paths are correct and include boost?

Frank_CB

@AndrewCot:
Thanks for your comment. Yes, I have checked the include paths. My global variable is $(#boost.include) which is included in the Search directories tab. It translated to '-IC:\boost\boost_1_80_0\boost\spirit\include" in the build log snippet that I included above, which I believe is correct, but still cannot be found. What version of boost are you using?

Regards.

AndrewCot

You need to check your include paths as they are wrong.
Search the https://wiki.codeblocks.org site for references to the boost include global variable and have a read.
You need to use the WIKI to see if it can help you out before posting.



Frank_CB

Thank yoy @andrewCot.  The WIKI has a couple of articles on Boost. I'll address the issue tomorrow.

Frank_CB

#5
$(#boost.include)="C:\boost\boost_1_80_0".