Author Topic: Problem with NassiShneiderman plugin and boost 1.65  (Read 287 times)

Offline gd_on

  • Regular
  • ***
  • Posts: 385
Problem with NassiShneiderman plugin and boost 1.65
« on: September 10, 2017, 07:31:00 pm »
I tried to generate C::B (svn 11161) with boost 1.65 version. There is a problem in NassiShneiderman plugin.
Code: [Select]

-------------- Nettoyer : default dans NassiShneiderman (compilateur : GNU GCC Compiler)---------------

Nettoyés "NassiShneiderman - default"

-------------- Générer : default dans NassiShneiderman (compilateur : GNU GCC Compiler)---------------

mingw32-g++.exe -std=gnu++11 -O -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DBUILDING_PLUGIN -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DBOOST_SYSTEM_NO_DEPRECATED -std=gnu++11 -Wno-deprecated-declarations -I..\..\..\include -I..\..\..\include\tinyxml -I..\..\..\sdk\wxscintilla\include -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\lib\gcc_dll\mswu -IC:\boost -IC:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\NassiShneiderman -IC:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\NassiShneiderman -c C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\NassiShneiderman\bricks.cpp -o ..\..\..\.objs\plugins\contrib\NassiShneiderman\bricks.o
...
mingw32-g++.exe -shared   -Wl,--dll -L..\..\..\devel -LC:\wxWidgets-2.8.12\lib\gcc_dll ..\..\..\.objs\plugins\contrib\NassiShneiderman\bricks.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\cbEditorPanel.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\commands.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\CParser.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\DataObject.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\FileContent.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\GraphBricks.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\GraphFabric.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\HooverDrawlet.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\InsertBrickTask.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\logger.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\NassiDiagramWindow.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\NassiDropTarget.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\NassiEditorPanel.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\NassiFileContent.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\NassiPlugin.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\NassiView.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\parseactions.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\PasteTask.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\RedHatchDrawlet.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\RedLineDrawlet.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\Task.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\TextCtrl.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\TextCtrlTask.o ..\..\..\.objs\plugins\contrib\NassiShneiderman\TextGraph.o  -o ..\..\..\devel\share\CodeBlocks\plugins\NassiShneiderman.dll -Wl,-enable-auto-import  -lcodeblocks -lwxmsw28u
..\..\..\.objs\plugins\contrib\NassiShneiderman\CParser.o:CParser.cpp:(.text$_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[__ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x46): undefined reference to `boost::system::generic_category()'
..\..\..\.objs\plugins\contrib\NassiShneiderman\CParser.o:CParser.cpp:(.text$_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[__ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0x55): undefined reference to `boost::system::generic_category()'
C:/MinGW32/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: ..\..\..\.objs\plugins\contrib\NassiShneiderman\CParser.o: bad reloc address 0x55 in section `.text$_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[__ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]'
collect2.exe: error: ld returned 1 exit status
Le processus s'est terminé avec le code d'état 1 (0 minute(s), 33 seconde(s))
3 erreur(s), 0 avertissement(s) (0 minute(s), 33 seconde(s))

No problem with boost 1.64.

Compilation on Windows 10 with TDM 4.9.2 compilers.

gd_on
Windows 10, svn C::B self generated (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits version (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10369
Re: Problem with NassiShneiderman plugin and boost 1.65
« Reply #1 on: September 10, 2017, 08:39:14 pm »
What boost release are you using? Have you compiled it with the same compiler?

boost_system is not header only library!
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Regular
  • ***
  • Posts: 385
Re: Problem with NassiShneiderman plugin and boost 1.65
« Reply #2 on: September 10, 2017, 09:13:17 pm »
I use directly boost 1.65 downloaded on http://www.boost.org/, file boost_1_65_0.7z, just unziped. Until now, it was enough, no need to compile it apparently. Just the headers were used, I think. May be I'm wrong.
Does the error comes from something not compatible in CParser ? a compilation option missing now, not needed before ?
gd_on

« Last Edit: September 10, 2017, 09:18:13 pm by gd_on »
Windows 10, svn C::B self generated (last version or almost!), WxWidgets 2.8.12, Compilers TDM 4.9.2 32 bits version (gcc and gfortran installed in C:\MinGW32). Tests with C::B 64 bits and WxWidgets 2.8.12 (64 bits) compiled by TDM 4.9.2 in C:\MinGW64

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10369
Re: Problem with NassiShneiderman plugin and boost 1.65
« Reply #3 on: September 11, 2017, 12:16:46 am »
I doubt it. Keep in mind that on windows boost does library autoloading using #pragma lib(import, blabla) or whatever the vstudio pragma was.
So it might look like it is header only, it is not. :)
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]