Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » ChartDirector
ChartDirector [message #5599] Thu, 05 October 2006 13:32 Go to next message
laurice is currently offline  laurice
Messages: 22
Registered: September 2006
Promising Member
Hi,

Has anyone tried compiling/building ChartDirector into their U++ apps? I have tried incorporating this charting/graphing library into my application but I always get stuck during compiling/linking. Btw, ChartDirector is done in C++ as well and you can find the library's site here: http://www.advsofteng.com/

Scenario:

U++ 609-dev3
WinXP




  • Attachment: charting.cpp
    (Size: 0.82KB, Downloaded 2200 times)
Re: ChartDirector [message #5600 is a reply to message #5599] Thu, 05 October 2006 13:34 Go to previous messageGo to next message
laurice is currently offline  laurice
Messages: 22
Registered: September 2006
Promising Member
Here's the Compile/Link Messages:

----- Core ( GCC BLITZ WIN32 ) (1 / 3)
----- plugin\z ( GCC BLITZ WIN32 ) (2 / 3)
----- Charting ( MAIN GCC BLITZ WIN32 ) (3 / 3)
Linking...
(option '-O 2' ignored)
File 'libchartdir41.a' not found.
___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
11 undefined symbol(s):
_BarLayer2Layer (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:80; .text$_ZN8BarLayerC1EP16BarLayerInternal; BarLayer::BarLayer(
BarLayerInternal *); BarLayer::BarLayer(BarLayerInternal*))
_Box2DrawObj (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:56; .text$_ZN3BoxC2EP11BoxInternal; Box::Box(BoxInternal *); Box::Bo
x(BoxInternal*))
_CAxis_setLabels (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:73; .text$_ZN4Axis9setLabelsE11StringArray; Axis::setLabels(Stri
ngArray); Axis::setLabels(StringArray))
_CBaseChart_destroy (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:64; .text$_ZN9BaseChartD2Ev; BaseChart::~BaseChart(void); Bas
eChart::~BaseChart())
_CBaseChart_makeChart (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:67; .text$_ZN9BaseChart9makeChartEPKc; BaseChart::makeChart
(char const *); BaseChart::makeChart(char const*))
_CXYChart_addBarLayer (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:91; .text$_ZN7XYChart11addBarLayerE11DoubleArrayiPKci; XYCh
art::addBarLayer(DoubleArray, int, char const *, int); XYChart::addBarLayer(DoubleArray, int, char const*, int))
_CXYChart_create (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:88; .text$_ZN7XYChartC1Eiiiii; XYChart::XYChart(int, int, int, i
nt, int); XYChart::XYChart(int, int, int, int, int))
_CXYChart_setPlotArea (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:90; .text$_ZN7XYChart11setPlotAreaEiiiiiiiii; XYChart::setP
lotArea(int, int, int, int, int, int, int, int, int); XYChart::setPlotArea(int, int, int, int, int, int, int, int, int))
_CXYChart_xAxis (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:89; .text$_ZN7XYChart5xAxisEv; XYChart::xAxis(void); XYChart::xAx
is())
_TextBox2Box (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:60; .text$_ZN7TextBoxC1EP15TextBoxInternal; TextBox::TextBox(TextBox
Internal *); TextBox::TextBox(TextBoxInternal*))
_XYChart2BaseChart (referenced from c:\upp\out\charting\mingw.blitz.main\charting.o:88; .text$_ZN7XYChartC1Eiiiii; XYChart::XYChart(int, int, int,
int, int); XYChart::XYChart(int, int, int, int, int))
linking aborted due to fatal errors
collect2: ld returned 1 exit status

There were errors. (0:04.21)
Re: ChartDirector [message #5602 is a reply to message #5600] Thu, 05 October 2006 15:03 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

the linker cannot find your ChartDirector library, so you must tell it, were the library is defined.
I downloaded the ChartDirector library and created a package with your application source file. The library only contains an import library for the DLL, but this should be no problem.
Then I added to the package the following flags using the package organizer dialog:

Link options:
-L"path to your ChartDirector dir/lib"

Libraries:
chartdir41

If this does not work for you, try to add only

Link options:
"path to your ChartDirector dir/lib/chartdir41.lib"

Matthias
Re: ChartDirector [message #5607 is a reply to message #5602] Thu, 05 October 2006 16:04 Go to previous message
laurice is currently offline  laurice
Messages: 22
Registered: September 2006
Promising Member
Hi Masu,

Thank you very much, I'm seeing great progress now. I'm able to build it successfully with your tips.

The path to the actual .lib in link options did it.
Many thanks to you!

Laurice
Next Topic: ValueMap, XmlRpc and RpcTest
Goto Forum:
  


Current Time: Thu Mar 28 16:35:08 CET 2024

Total time taken to generate the page: 0.01469 seconds