Fehlermeldung beim Kompilieren



  • hab_ne_frage schrieb:

    und wie heisst die lib?
    libplotter klappt nicht?

    Wie? Du musst doch wissen wie die Library heißt. Was hast du denn für Files? Wenn du nur die Header hast, dann wird dir das recht wenig nützen, denn irgendwo muss das ganze ja implementiert sein.

    EDIT:
    Ich kenn plotutils selbst nicht. Ich hab jetzt mal vermutet, dass es eine lib ist. Wenn du die Implementationsdateien (*.cpp) hast, dann muss der Compiler die natürlich auch finden können.



  • ja ich denke es ist die libplotter.la bei mir unter /usr/lib

    oder mache ich da was falsch



  • hab_ne_frage schrieb:

    oder mache ich da was falsch

    Welche Header (von plotutils) bindest du überhaupt ein?



  • die plotter.h



  • hab_ne_frage schrieb:

    die plotter.h

    NOTE: Neither the `pic2plot' program nor the `libplotter' C++ class library
    is built by default, since they require a working C++ compiler.  But it is
    easy to request that they be built.  For details, see INSTALL.pkg.  Also, a
    standalone version of the `libxmi' scan-conversion library isn't built by
    default, since `libxmi' is distributed as a separate package.
    

    Lies dir mal die Readme durch.



  • also meines erachtens ist die lib doch kompiliert ich arbeite unter linux:

    --- replaced obj /usr/lib/libxmi.so.0.1.3
    --- replaced sym /usr/lib/libxmi.so.0
    --- replaced sym /usr/lib/libxmi.so
    --- replaced obj /usr/lib/libxmi.la
    --- replaced obj /usr/lib/libxmi.a
    --- replaced obj /usr/lib/libplotter.so.2.2.3
    --- replaced sym /usr/lib/libplotter.so.2
    --- replaced sym /usr/lib/libplotter.so
    --- replaced obj /usr/lib/libplotter.la
    --- replaced obj /usr/lib/libplotter.a
    --- replaced obj /usr/lib/libplot.so.2.2.3
    --- replaced sym /usr/lib/libplot.so.2
    --- replaced sym /usr/lib/libplot.so
    --- replaced obj /usr/lib/libplot.la
    --- replaced obj /usr/lib/libplot.a
    

    nur das linken klappt irgentwie nicht?



  • Wenn du ein lib File hast, dann musst du das auch (ggf. vollqualifiziert) linken.



  • Ok also mit diesem "hack":

    const_cast<char*>()
    

    kompiliert es jetzt zwar, aber es werden die gecasteten Sachen nicht angenommen.
    Dh es werden die initialen (standard) belegungen verwendet.

    WIe funktioniert denn das richtig? Kann doch eigentlich nicht sein?

    Mfg



  • hab_ne_frage schrieb:

    Ok also mit diesem "hack":

    const_cast<char*>()
    

    kompiliert es jetzt zwar, aber es werden die gecasteten Sachen nicht angenommen.
    Dh es werden die initialen (standard) belegungen verwendet.

    Das kann nicht stimmen. Zeig mal den Code.



  • // set Plotter parameters
    	plotter.parampl ("BITMAPSIZE", const_cast<char*>("600x600") );
    	plotter.parampl ("BG_COLOR", const_cast<char*>("yellow") );              // background color for window
    	plotter.parampl ("USE_DOUBLE_BUFFERING", const_cast<char*>("yes") );
    

Anmelden zum Antworten