[Reflextion] Please help me, i have trouble with reflextion

Hello, I am trying to use boos-reflexion but I have this trouble in this thread: http://archives.free.net.ph/message/20080913.122428.8014a555.fi.html Hello. I downloaded boost.extensions from http://boost-extension.blogspot.com/?gclid=CNjp5dfJ2JUCFQsZQgod0mHbWg When I tried the first example (the shared_library one) in the tutorial, I realized that the macro BOOST_EXTENSION_EXPORT_DECL didn't prevent c++ name mangling for the example function. I had to add extern "C" before void manually. And in the second tutorial (the animals tutorial) BOOST_EXTENSION_TYPE_MAP_FUNCTION seems to be called, but when I get the map from main, it is empty. The library is found (LD_LIBRARY_PATH is set so that it finds the library) but it does not work. Thank you. Tested in gcc 4.3.2 under ubuntu 8.10. Can somebody help me ?

Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
On Thu, Nov 6, 2008 at 8:54 PM, Mario Chacon
Hello, I am trying to use boos-reflexion but I have this trouble in this thread:
http://archives.free.net.ph/message/20080913.122428.8014a555.fi.html
Hello. I downloaded boost.extensions from http://boost-extension.blogspot.com/?gclid=CNjp5dfJ2JUCFQsZQgod0mHbWg
When I tried the first example (the shared_library one) in the tutorial, I realized that the macro BOOST_EXTENSION_EXPORT_DECL didn't prevent c++ name mangling for the example function. I had to add extern "C" before void manually.
And in the second tutorial (the animals tutorial) BOOST_EXTENSION_TYPE_MAP_FUNCTION seems to be called, but when I get the map from main, it is empty. The library is found (LD_LIBRARY_PATH is set so that it finds the library) but it does not work. Thank you.
Tested in gcc 4.3.2 under ubuntu 8.10.
Can somebody help me ?

2008/11/7 Mario Chacon
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
On Thu, Nov 6, 2008 at 8:54 PM, Mario Chacon
wrote: Hello, I am trying to use boos-reflexion but I have this trouble in this thread:
http://archives.free.net.ph/message/20080913.122428.8014a555.fi.html
Hello. I downloaded boost.extensions from http://boost-extension.blogspot.com/?gclid=CNjp5dfJ2JUCFQsZQgod0mHbWg
When I tried the first example (the shared_library one) in the tutorial, I realized that the macro BOOST_EXTENSION_EXPORT_DECL didn't prevent c++ name mangling for the example function. I had to add extern "C" before void manually.
And in the second tutorial (the animals tutorial) BOOST_EXTENSION_TYPE_MAP_FUNCTION seems to be called, but when I get the map from main, it is empty. The library is found (LD_LIBRARY_PATH is set so that it finds the library) but it does not work. Thank you.
Tested in gcc 4.3.2 under ubuntu 8.10.
Can somebody help me ?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
What does mean "but it does not work"? Not load? Not export function? Crash with SIGTERM? Another?

Mario,
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
Are you building with or without BJAM? Please run the following in the libs/extension example: cd extension/examples bjam cd ../test bjam cd ../../reflection/examples bjam cd ../test bjam And send me the output. If you're not using bjam, you may need to set some preprocessor macros, but I'll need to know which compiler you are using. Jeremy

Thank you for answer me, I do not have bjam to install, but I have jam, I do
not know if I am doing well.
Here is my output: with jam:
[masch@pelotinux examples]$ cd ../test/
[masch@pelotinux test]$ jam
Jamfile: No such file or directory
...found 7 target(s)...
[masch@pelotinux test]$ cd ../../
config/ detail/ extension/ filesystem/ reflection/ regex/
system/ test/
[masch@pelotinux test]$ cd ../../re
reflection/ regex/
[masch@pelotinux test]$ cd ../../re
reflection/ regex/
[masch@pelotinux test]$ cd ../../reflection/examples/
[masch@pelotinux examples]$ jam
Jamfile: No such file or directory
...found 7 target(s)...
[masch@pelotinux examples]$ cd ../test/
[masch@pelotinux test]$ jam
Jamfile: No such file or directory
...found 7 target(s)...
I am using Fedora 10, I here it's my compiler info:
[masch@pelotinux test]$ gcc --version
gcc (GCC) 4.3.2 20081007 (Red Hat 4.3.2-6)
Please let me know if you need more info.
Thank you...
On Fri, Nov 7, 2008 at 4:54 PM, Jeremy Pack
Mario,
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
Are you building with or without BJAM?
Please run the following in the libs/extension example:
cd extension/examples bjam cd ../test bjam cd ../../reflection/examples bjam cd ../test bjam
And send me the output.
If you're not using bjam, you may need to set some preprocessor macros, but I'll need to know which compiler you are using.
Jeremy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Mario,
I would highly recommend using bjam. If you downloaded the libraries from
http://boost-extension.blogspot.com, it should include the bjam source, in
the tools/jam directory.
Otherwise, look in the Jamfile.v2 files included for the examples and make
sure that you use any of the GCC options listed there when you compile.
Jeremy
On Fri, Nov 7, 2008 at 3:42 PM, Mario Chacon
Thank you for answer me, I do not have bjam to install, but I have jam, I do not know if I am doing well. Here is my output: with jam:
[masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux test]$ cd ../../ config/ detail/ extension/ filesystem/ reflection/ regex/ system/ test/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../reflection/examples/ [masch@pelotinux examples]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)...
I am using Fedora 10, I here it's my compiler info: [masch@pelotinux test]$ gcc --version gcc (GCC) 4.3.2 20081007 (Red Hat 4.3.2-6)
Please let me know if you need more info.
Thank you...
On Fri, Nov 7, 2008 at 4:54 PM, Jeremy Pack
wrote: Mario,
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
Are you building with or without BJAM?
Please run the following in the libs/extension example:
cd extension/examples bjam cd ../test bjam cd ../../reflection/examples bjam cd ../test bjam
And send me the output.
If you're not using bjam, you may need to set some preprocessor macros, but I'll need to know which compiler you are using.
Jeremy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hello:
Is it right my test_redist output?
./test_redist.sh
++ echo Testing
Testing
++ '[' -z BOOST_BJAM_LOCATION ']'
+++ pwd
++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection
+++ pwd
++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
++ for f in libs/extension/examples libs/reflection/examples
libs/reflection/test libs/extension/test
++ cd /home/mchacon/Desktop/extension-reflection/libs/extension/examples
+++ pwd
++ echo /home/mchacon/Desktop/extension-reflection/libs/extension/examples
/home/mchacon/Desktop/extension-reflection/libs/extension/examples
++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection
++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
++ for f in libs/extension/examples libs/reflection/examples
libs/reflection/test libs/extension/test
++ cd /home/mchacon/Desktop/extension-reflection/libs/reflection/examples
+++ pwd
++ echo /home/mchacon/Desktop/extension-reflection/libs/reflection/examples
/home/mchacon/Desktop/extension-reflection/libs/reflection/examples
++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection
++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
++ for f in libs/extension/examples libs/reflection/examples
libs/reflection/test libs/extension/test
++ cd /home/mchacon/Desktop/extension-reflection/libs/reflection/test
+++ pwd
++ echo /home/mchacon/Desktop/extension-reflection/libs/reflection/test
/home/mchacon/Desktop/extension-reflection/libs/reflection/test
++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection
++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
++ for f in libs/extension/examples libs/reflection/examples
libs/reflection/test libs/extension/test
++ cd /home/mchacon/Desktop/extension-reflection/libs/extension/test
+++ pwd
++ echo /home/mchacon/Desktop/extension-reflection/libs/extension/test
/home/mchacon/Desktop/extension-reflection/libs/extension/test
++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection
++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
Thank you
On Sat, Nov 8, 2008 at 12:22 PM, Jeremy Pack
Mario,
I would highly recommend using bjam. If you downloaded the libraries from http://boost-extension.blogspot.com, it should include the bjam source, in the tools/jam directory.
Otherwise, look in the Jamfile.v2 files included for the examples and make sure that you use any of the GCC options listed there when you compile.
Jeremy
On Fri, Nov 7, 2008 at 3:42 PM, Mario Chacon
wrote: Thank you for answer me, I do not have bjam to install, but I have jam, I do not know if I am doing well. Here is my output: with jam:
[masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux test]$ cd ../../ config/ detail/ extension/ filesystem/ reflection/ regex/ system/ test/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../reflection/examples/ [masch@pelotinux examples]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)...
I am using Fedora 10, I here it's my compiler info: [masch@pelotinux test]$ gcc --version gcc (GCC) 4.3.2 20081007 (Red Hat 4.3.2-6)
Please let me know if you need more info.
Thank you...
On Fri, Nov 7, 2008 at 4:54 PM, Jeremy Pack
wrote: Mario,
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
Are you building with or without BJAM?
Please run the following in the libs/extension example:
cd extension/examples bjam cd ../test bjam cd ../../reflection/examples bjam cd ../test bjam
And send me the output.
If you're not using bjam, you may need to set some preprocessor macros, but I'll need to know which compiler you are using.
Jeremy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Nope. It doesn't appear to actually be running bjam. Is bjam in your path?
If not, set BOOST_BJAM_LOCATION to the actual location of bjam before
running the script.
Jeremy
On Mon, Nov 10, 2008 at 9:10 AM, Mario Chacon
Hello: Is it right my test_redist output?
./test_redist.sh ++ echo Testing Testing ++ '[' -z BOOST_BJAM_LOCATION ']' +++ pwd ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection +++ pwd ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/extension/examples +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/extension/examples /home/mchacon/Desktop/extension-reflection/libs/extension/examples ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/reflection/examples +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/reflection/examples /home/mchacon/Desktop/extension-reflection/libs/reflection/examples ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/reflection/test +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/reflection/test /home/mchacon/Desktop/extension-reflection/libs/reflection/test ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/extension/test +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/extension/test /home/mchacon/Desktop/extension-reflection/libs/extension/test ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
Thank you
On Sat, Nov 8, 2008 at 12:22 PM, Jeremy Pack
wrote: Mario,
I would highly recommend using bjam. If you downloaded the libraries from http://boost-extension.blogspot.com, it should include the bjam source, in the tools/jam directory.
Otherwise, look in the Jamfile.v2 files included for the examples and make sure that you use any of the GCC options listed there when you compile.
Jeremy
On Fri, Nov 7, 2008 at 3:42 PM, Mario Chacon
wrote: Thank you for answer me, I do not have bjam to install, but I have jam, I do not know if I am doing well. Here is my output: with jam:
[masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux test]$ cd ../../ config/ detail/ extension/ filesystem/ reflection/ regex/ system/ test/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../reflection/examples/ [masch@pelotinux examples]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)...
I am using Fedora 10, I here it's my compiler info: [masch@pelotinux test]$ gcc --version gcc (GCC) 4.3.2 20081007 (Red Hat 4.3.2-6)
Please let me know if you need more info.
Thank you...
On Fri, Nov 7, 2008 at 4:54 PM, Jeremy Pack
wrote: Mario,
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
Are you building with or without BJAM?
Please run the following in the libs/extension example:
cd extension/examples bjam cd ../test bjam cd ../../reflection/examples bjam cd ../test bjam
And send me the output.
If you're not using bjam, you may need to set some preprocessor macros, but I'll need to know which compiler you are using.
Jeremy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Sorry, I do not know how to do that, my bjam it's in /usr/bin/bjam, What
should I do?
Thank you..
On Mon, Nov 10, 2008 at 3:19 PM, Jeremy Pack
Nope. It doesn't appear to actually be running bjam. Is bjam in your path? If not, set BOOST_BJAM_LOCATION to the actual location of bjam before running the script. Jeremy
On Mon, Nov 10, 2008 at 9:10 AM, Mario Chacon
wrote: Hello: Is it right my test_redist output?
./test_redist.sh ++ echo Testing Testing ++ '[' -z BOOST_BJAM_LOCATION ']' +++ pwd ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection +++ pwd ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/extension/examples +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/extension/examples /home/mchacon/Desktop/extension-reflection/libs/extension/examples ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/reflection/examples +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/reflection/examples /home/mchacon/Desktop/extension-reflection/libs/reflection/examples ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/reflection/test +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/reflection/test /home/mchacon/Desktop/extension-reflection/libs/reflection/test ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection ++ for f in libs/extension/examples libs/reflection/examples libs/reflection/test libs/extension/test ++ cd /home/mchacon/Desktop/extension-reflection/libs/extension/test +++ pwd ++ echo /home/mchacon/Desktop/extension-reflection/libs/extension/test /home/mchacon/Desktop/extension-reflection/libs/extension/test ++ BOOST_SANDBOX_ROOT=/home/mchacon/Desktop/extension-reflection ++ BOOST_ROOT=/home/mchacon/Desktop/extension-reflection
Thank you
On Sat, Nov 8, 2008 at 12:22 PM, Jeremy Pack
wrote: Mario,
I would highly recommend using bjam. If you downloaded the libraries from http://boost-extension.blogspot.com, it should include the bjam source, in the tools/jam directory.
Otherwise, look in the Jamfile.v2 files included for the examples and make sure that you use any of the GCC options listed there when you compile.
Jeremy
On Fri, Nov 7, 2008 at 3:42 PM, Mario Chacon
wrote: Thank you for answer me, I do not have bjam to install, but I have jam, I do not know if I am doing well. Here is my output: with jam:
[masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux test]$ cd ../../ config/ detail/ extension/ filesystem/ reflection/ regex/ system/ test/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../re reflection/ regex/ [masch@pelotinux test]$ cd ../../reflection/examples/ [masch@pelotinux examples]$ jam Jamfile: No such file or directory ...found 7 target(s)... [masch@pelotinux examples]$ cd ../test/ [masch@pelotinux test]$ jam Jamfile: No such file or directory ...found 7 target(s)...
I am using Fedora 10, I here it's my compiler info: [masch@pelotinux test]$ gcc --version gcc (GCC) 4.3.2 20081007 (Red Hat 4.3.2-6)
Please let me know if you need more info.
Thank you...
On Fri, Nov 7, 2008 at 4:54 PM, Jeremy Pack
wrote: Mario,
Sorry to bother you again, I really need to fix it. Can you help me?
Salu2...
Are you building with or without BJAM?
Please run the following in the libs/extension example:
cd extension/examples bjam cd ../test bjam cd ../../reflection/examples bjam cd ../test bjam
And send me the output.
If you're not using bjam, you may need to set some preprocessor macros, but I'll need to know which compiler you are using.
Jeremy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Jeremy Pack
-
Mario Chacon
-
Олег Царев