Re: Inline::CPP
Lloyd Sartor wrote on 04/11/2005 10:01:15 AM: Sisyphus [EMAIL PROTECTED] wrote on 04/08/2005 05:23:42 PM: I get an unusual error: Can't open perl script and when testing. $ perl makefile.pl This will configure and build Inline::C++. What default C++ compiler would you like to use? [cl -TP] What default libraries would you like to include? [MSVCIRT.LIB] Writing Makefile for Inline::CPP::grammar Writing Makefile for Inline::CPP $ nmake test Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Skip blib\lib\Inline\CPP.pm (unchanged) Skip blib\lib\Inline\CPP.pod (unchanged) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'bl ib\lib', 'blib\arch') t\01basic.t t\02prefix.t t\01basic.Can't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\01basic.t line 30 BEGIN failed--compilation aborted at t\01basic.t line 64. t\01basic.dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t\02prefixCan't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\02prefix.t line 0 INIT failed--call queue aborted, DATA line 1. t\02prefixdubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- t\01basic.t 2 51210 20 200.00% 1-10 t\02prefix.t2 512 48 200.00% 1-4 Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. I was bitten by MS directory names that include spaces. After fixing that and updating the $INCLUDE environment variable, Inline::CPP tested ok. Rob, thanks for the guidance. Lloyd $ nmake test Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Skip blib\lib\Inline\CPP.pm (unchanged) Skip blib\lib\Inline\CPP.pod (unchanged) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'bl ib\lib', 'blib\arch') t\01basic.t t\02prefix.t t\01basic.ok t\02prefixok All tests successful. Files=2, Tests=14, 28 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, '.. \blib\lib', '..\blib\arch') t\01nherit.t t\02scope.t t\03inline.t t\04const.t t \05virt.t t\06deflt.t t\07static.t t\08anon.t t\09purevt.t t\10struct.t t\11minh rt.t t\12retlst.t t\13vararg.t t\14const.t t\15stvar.t t\16varlst.t t\01nheritok t\02scope.ok t\03inlineok t\04const.ok t\05virt..ok t\06deflt.ok t\07staticok t\08anon..ok t\09purevtok t\10structok t\11minhrtok t\12retlstok t\13varargok t\14const.ok t\15stvar.ok t\16varlstok All tests successful. Files=16, Tests=34, 118 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
On Mon, 11 Apr 2005, Lloyd Sartor wrote: I get an unusual error: Can't open perl script and when testing. t\01basic.Can't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\01basic.t line 30 That's probably the Documents and Settings-and. It's a very common and annoying problem. Ciao Daniel ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
- Original Message - From: Lloyd Sartor [EMAIL PROTECTED] To: Sisyphus [EMAIL PROTECTED] I assume you are using VC++ 6.0. I am using Microsoft Visual C++ Toolkit 2003 installed per http://aspn.activestate.com/ASPN/docs/ActivePerl/lib/Pod/perlwin32.html. However, I never rebuilt Perl. Is that necessary? I don't know if it's *necessary*. I just built Inline::CPP-0.25 using ActiveState build 810, and MSVC++ 7.0 - and didn't strike any problems (except that math.h again had to be included and 16varlst.t failed). Probably best to build perl using the compiler you have - but if you prefer to wait and see what sort of milage you get with AS-built perl, then that's fine by me. For one thing, if you do build perl with your compiler you should find that math.h doesn't need to be included, and 16varlst.t should pass ummm that might be *two* things :-) $ cl /? Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. I get an unusual error: Can't open perl script and when testing. t\02prefixCan't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inline-CPP\Inline-CPP-0.25\_Inline\config. I think the problem is that you have a directory name with spaces in it (ie C:\Documents and Settings). That's where the and is being found. It will make things a lot easier if you can avoid directories with spaces in them. There's probably a workaround but I don't know what it is. Is it possible for you to avoid Documents and Settings and My Documents, or do we need to come up with a workaround ? Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
Lloyd Sartor wrote on 04/11/2005 10:01:15 AM: Sisyphus [EMAIL PROTECTED] wrote on 04/08/2005 05:23:42 PM: I get an unusual error: Can't open perl script and when testing. $ perl makefile.pl This will configure and build Inline::C++. What default C++ compiler would you like to use? [cl -TP] What default libraries would you like to include? [MSVCIRT.LIB] Writing Makefile for Inline::CPP::grammar Writing Makefile for Inline::CPP $ nmake test Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Skip blib\lib\Inline\CPP.pm (unchanged) Skip blib\lib\Inline\CPP.pod (unchanged) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'bl ib\lib', 'blib\arch') t\01basic.t t\02prefix.t t\01basic.Can't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\01basic.t line 30 BEGIN failed--compilation aborted at t\01basic.t line 64. t\01basic.dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t\02prefixCan't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\02prefix.t line 0 INIT failed--call queue aborted, DATA line 1. t\02prefixdubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- t\01basic.t 2 51210 20 200.00% 1-10 t\02prefix.t2 512 48 200.00% 1-4 Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. I was bitten by MS directory names that include spaces. After fixing that and updating the $INCLUDE environment variable, Inline::CPP tested ok. Rob, thanks for the guidance. Lloyd $ nmake test Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Skip blib\lib\Inline\CPP.pm (unchanged) Skip blib\lib\Inline\CPP.pod (unchanged) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'bl ib\lib', 'blib\arch') t\01basic.t t\02prefix.t t\01basic.ok t\02prefixok All tests successful. Files=2, Tests=14, 28 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, '.. \blib\lib', '..\blib\arch') t\01nherit.t t\02scope.t t\03inline.t t\04const.t t \05virt.t t\06deflt.t t\07static.t t\08anon.t t\09purevt.t t\10struct.t t\11minh rt.t t\12retlst.t t\13vararg.t t\14const.t t\15stvar.t t\16varlst.t t\01nheritok t\02scope.ok t\03inlineok t\04const.ok t\05virt..ok t\06deflt.ok t\07staticok t\08anon..ok t\09purevtok t\10structok t\11minhrtok t\12retlstok t\13varargok t\14const.ok t\15stvar.ok t\16varlstok All tests successful. Files=16, Tests=34, 118 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
Sisyphus [EMAIL PROTECTED] wrote on 04/08/2005 05:23:42 PM: $Bill wrote on 04/08/2005 09:23:03 AM: Sisyphus wrote: Try cpan :-) As was mentioned a few days back, there might be problems with some compilers on Win32 - but I thought we covered those issues. What's the problem you've come up against ? If there were no problems, it would be available via PPM somewhere. :) That's correct - but those (2) problems were discussed a few days back in the thread 'More on Re: Windows DLL - Perl Interface' which op was following. I need to link functions from a vendor's CPP source to a Perl program. (Inline::C doesn't find the functions because of the name mangling.) The ActiveState web site does not indicate that Inline::CPP is available for Win32. Am I SOL? Go to http://search.cpan.org/~neilw/Inline-CPP-0.25/ and click on the 'Download' link. Extract the downloaded file to some folder and cd to that folder. As was mentioned in a link provided in that other thread, starting at about line 44 of CPP.pm you have: #ifndef bool #include %iostream% #endif extern C { #include EXTERN.h #include perl.h Add #include math.h to the top of that list - so it reads: #include math.h #ifndef bool #include %iostream% #endif extern C { #include EXTERN.h #include perl.h Then run, in succession, perl makefile.pl nmake test nmake install The last test in the test suite will fail (with VC++ 6.0) - not sure why, but it probably won't lead to any problems for you. If it does, let us know. I assume you are using VC++ 6.0. I am using Microsoft Visual C++ Toolkit 2003 installed per http://aspn.activestate.com/ASPN/docs/ActivePerl/lib/Pod/perlwin32.html. However, I never rebuilt Perl. Is that necessary? $ cl /? Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights reserved. I get an unusual error: Can't open perl script and when testing. $ perl makefile.pl This will configure and build Inline::C++. What default C++ compiler would you like to use? [cl -TP] What default libraries would you like to include? [MSVCIRT.LIB] Writing Makefile for Inline::CPP::grammar Writing Makefile for Inline::CPP $ nmake test Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Skip blib\lib\Inline\CPP.pm (unchanged) Skip blib\lib\Inline\CPP.pod (unchanged) C:\Perl\bin\perl.exe -MExtUtils::Command::MM -e test_harness(0, 'bl ib\lib', 'blib\arch') t\01basic.t t\02prefix.t t\01basic.Can't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\01basic.t line 30 BEGIN failed--compilation aborted at t\01basic.t line 64. t\01basic.dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t\02prefixCan't open perl script and: No such file or directory Failed to autogenerate C:\Documents and Settings\a1027277\My Documents\Perl\Inli ne-CPP\Inline-CPP-0.25\_Inline\config. at t\02prefix.t line 0 INIT failed--call queue aborted, DATA line 1. t\02prefixdubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- t\01basic.t 2 51210 20 200.00% 1-10 t\02prefix.t2 512 48 200.00% 1-4 Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
- Original Message - From: Lloyd Sartor [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Friday, April 08, 2005 11:19 PM Subject: Inline::CPP Can anyone tell me where I can find a working Inline::CPP for Win32? Try cpan :-) As was mentioned a few days back, there might be problems with some compilers on Win32 - but I thought we covered those issues. What's the problem you've come up against ? Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
Sisyphus wrote: Try cpan :-) As was mentioned a few days back, there might be problems with some compilers on Win32 - but I thought we covered those issues. What's the problem you've come up against ? If there were no problems, it would be available via PPM somewhere. :) -- ,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROTECTED] (_/ / )// // DBE CollectiblesMailto:[EMAIL PROTECTED] / ) /-- o // // Castle of Medieval Myth Magic http://www.todbe.com/ -/-' /___/__/_/_http://dbecoll.tripod.com/ (My Perl/Lakers stuff) ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
$Bill wrote on 04/08/2005 09:23:03 AM: Sisyphus wrote: Try cpan :-) As was mentioned a few days back, there might be problems with some compilers on Win32 - but I thought we covered those issues. What's the problem you've come up against ? If there were no problems, it would be available via PPM somewhere. :) I need to link functions from a vendor's CPP source to a Perl program. (Inline::C doesn't find the functions because of the name mangling.) The ActiveState web site does not indicate that Inline::CPP is available for Win32. Am I SOL? Lloyd ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Inline::CPP
- Original Message - From: Lloyd Sartor [EMAIL PROTECTED] Cc: perl-win32-users@listserv.ActiveState.com Sent: Saturday, April 09, 2005 1:00 AM Subject: Re: Inline::CPP $Bill wrote on 04/08/2005 09:23:03 AM: Sisyphus wrote: Try cpan :-) As was mentioned a few days back, there might be problems with some compilers on Win32 - but I thought we covered those issues. What's the problem you've come up against ? If there were no problems, it would be available via PPM somewhere. :) That's correct - but those (2) problems were discussed a few days back in the thread 'More on Re: Windows DLL - Perl Interface' which op was following. I need to link functions from a vendor's CPP source to a Perl program. (Inline::C doesn't find the functions because of the name mangling.) The ActiveState web site does not indicate that Inline::CPP is available for Win32. Am I SOL? Go to http://search.cpan.org/~neilw/Inline-CPP-0.25/ and click on the 'Download' link. Extract the downloaded file to some folder and cd to that folder. As was mentioned in a link provided in that other thread, starting at about line 44 of CPP.pm you have: #ifndef bool #include %iostream% #endif extern C { #include EXTERN.h #include perl.h Add #include math.h to the top of that list - so it reads: #include math.h #ifndef bool #include %iostream% #endif extern C { #include EXTERN.h #include perl.h Then run, in succession, perl makefile.pl nmake test nmake install The last test in the test suite will fail (with VC++ 6.0) - not sure why, but it probably won't lead to any problems for you. If it does, let us know. I assume you are using VC++ 6.0. Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Help Inline::CPP
Title: Help Inline::CPP Good Day All I wrote a script using Inline::CPP and made use of classes. I am now trying to instantiate a class but the compiler complains. I am including 3 files. On a module, one the test script and one that contains the errors I am receiving. If someone could look at this and tell me what I am doing wrong, please help Ronald Mundell 083407 error.lst comms_test.pl CComms.pm This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution, or taking any action based on this information is prohibited. Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or its effect on any electronic device of the recipient. If verification of this email or any attachment is required, please request a hard-copy version. error.lst Description: Binary data comms_test.pl Description: Binary data CComms.pm Description: Binary data