Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=2989192
By: gconant

Sorry to ask a question regarding the visual c++ environment, but I've come
across something that seems straight-forward and yet doesn't work.
I downloaded the latest developer binaries for the plotutils package and 
installed
it (XP Pro, if it matters).  I would like to call classes from the libplotter
library, but even very simple calls fail to link.  Thus (with PSPlotter *plotter
in a header):
Draw_graph::Draw_graph (char *outputfile, Graph<Gene_node> *graph)
{     
        plotter = new PSPlotter (cin, cout, cerr); // create Plotter

}

gives an:
 error LNK2001: unresolved external symbol "public: __thiscall
PSPlotter::PSPlotter(class istream &,class ostream &,class ostream &)"
(??0PSPlotter@@[EMAIL PROTECTED]@@AAVostream@@[EMAIL PROTECTED])

The linker points to the correct library (libplotter.lib) and include dirs seem
ok.  Moreover, if I replace the plotter functions with c functions from libplot,
that compiles fine.  Is it possible that it has something to do w/ how the names
are mangled between g++ (used to create libplotter) and vc++?  I have recreated
the link library using lib.exe without curing the problem.  Thanks for any help.
Gavin Conant


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to