Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Inline:CPP module won't install

by Hue-Bond (Priest)
on Apr 05, 2010 at 13:43 UTC ( #832801=note: print w/replies, xml ) Need Help??


in reply to Inline:CPP module won't install

Set up gcc environment - 3.4.5 (mingw special) This will configure and build Inline::C++. What default C++ compiler would you like to use? [g++] gcc What default libraries would you like to include? [-lstdc++] Checking if your kit is complete...

I don't know much about your problem, but the fact that you answered gcc to the question about what g++ compiler to use just caught my attention.

--
 David Serrano
 (Please treat my english text just like Perl code, i.e. feel free to notify me of any syntax, grammar, style and/or spelling error. Thank you!).

Replies are listed 'Best First'.
Re^2: Inline:CPP module won't install
by almut (Canon) on Apr 05, 2010 at 14:59 UTC

    Well observed.

    $ cat 832794.c #include <iostream.h> $ g++ -c 832794.c In file included from /usr/include/c++/4.2/backward/iostream.h:31, from 832794.c:1: /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: #warni +ng This file includes at least one deprecated or antiquated header. P +lease consider using one of the 32 headers found in section 17.4.1.2 +of the C++ standard. Examples include substituting the <X> header for + the <X.h> header for C++ includes, or <iostream> instead of the depr +ecated header <iostream.h>. To disable this warning use -Wno-deprecat +ed. $ gcc -c 832794.c 832794.c:1:22: error: iostream.h: No such file or directory

    ...which is exactly the first error the OP is getting:

    _01basic_t_5cd2.xs:2:22: iostream.h: No such file or directory

    (Just to be clear: the primary issue here is not the deprecation warning, but the fact that the path were iostream.h resides isn't being searched when gcc is used.  The warning is just an indication that Inline::CPP is rather old/unmaintained.)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://832801]
help
Chatterbox?
[Corion]: And performance linear to the number of registered one-shots doesn't feel that bad. Maybe I should collect statistics on how many callbacks are outstanding ;)
[Corion]: choroba: Yes, but the longer I thought about efficient hashes mapping the event type back to their callbacks, and how to keep them in sync, the more I thought that all that optimization might just not be worth it, even if it's horribly inelegant
[Lady_Aleena]: My biggest problem with hashes at the moment is one with 2,501 keys.
[choroba]: how many event types are there?
[Corion]: Also I found that I can't conveniently weaken an array slot, which also is inconvenient, as I want my one-shots to disappear if the caller discards them
[Corion]: choroba: Currently two or three that my program handles (WWW::Mechanize:: Chrome), but there might be more that become interesting
[Corion]: But I don't expect more than 100 to be active at the same time, so I'm not really sure if there is a not-too-fancy data structure that is maintained with few lines of code where the performance is better than the linear scan ;)
[Corion]: But I should do a mock-up program so that others can see what I'm talking about ;)
[robby_dobby]: Corion: I hope you know all too well that passing around "fancy" datastructures is a recipe for disaster :-)
[robby_dobby]: As in, it's-too-fancy- that-it-will-be- messy-to-handle

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2017-05-29 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?