|
Chart Director with mingw |
Posted by James on Aug-22-2014 01:19 |
|
I am trying to build the simplebar demo application under mingw.
I tried this:
C:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin>mingw32-g++.exe
C:\\Users\\James\\Documents\\code\\vase\\test\\simplebar.cpp
-IC:\\Users\\James\\Documents\\code\\vase\\ChartDirector_cpp\\include
-o C:\\Users\\James\\Documents\\code\\vase\\bin\\test.exe
C:\\Users\\James\\Documents\\code\\vase\\ChartDirector_cpp\\lib\\chartdir51.lib
but i get undefined references
C:\\Users\\James\\AppData\\Local\\Temp\\ccw6pJCJ.o:simplebar.cpp:
(.text$_ZN3BoxC2EP11BoxInternal[__ZN3BoxC2EP11BoxInternal]+0x10):
undefined reference to `Box2DrawObj'
C:\\Users\\James\\AppData\\Local\\Temp\\ccw6pJCJ.o:simplebar.cpp:
(.text$_ZN7TextBoxC1EP15TextBoxInternal[__ZN7TextBoxC1EP15TextBoxInternal]+0x10):
undefined reference to `TextBox2Box'
Should this work?
James |
Re: Chart Director with mingw |
Posted by james on Aug-22-2014 20:59 |
|
I also tried downloading and building the linux version of chart director. The result was:
mingw32-g++.exe
C:\\Users\\James\\Downloads\\ChartDirector\\cppdemo\\simplebar\\simplebar.cpp
-IC:\\Users\\James\\Downloads\\ChartDirector\\include
-o C:\\Users\\James\\code\\vase\\bin\\test.exe
C:\\Users\\James\\Downloads\\ChartDirector\\lib\\libchartdir.so.5.1.0
C:\\Users\\James\\Downloads\\ChartDirector\\lib\\libchartdir.so.5.1.0:
could not read symbols: File in wrong format
collect2.exe: error: ld returned 1 exit status |
Re: Chart Director with mingw |
Posted by Peter Kwan on Aug-23-2014 00:37 |
|
Hi James,
ChartDirector for C++ for Windows is often used with mingw on Windows (typically for Qt
based projects), so it should work with mingw. I have just tried myself and it does work.
Is it possible you are using the 64-bit edition of ChartDirector, but your compiler is for 32-
bit Windows? If your compiler is 32-bit, you would need to use the 32-bit edition of
ChartDirector for C++, regardless of your operating system.
The Linux edition of ChartDirector definitely would not work as the mingw you are using is
for the Windows operating system.
Regards
Peter Kwan |
Re: Chart Director with mingw |
Posted by james on Aug-23-2014 01:03 |
|
Thanks, Peter. That was exactly the problem ( using 64 bit library with 32 bit mingw ) Build
perfectly now
mingw32-g++
C:\\Users\\James\\Downloads\\chartdir_cpp_win32\\ChartDirector\\cppdemo\\simplebar\\simplebar.
cpp
-IC:\\Users\\James\\Downloads\\chartdir_cpp_win32\\ChartDirector\\include
-o C:\\Users\\James\\code\\vase\\bin\\test2.exe
-C:\\Users\\James\\Downloads\\chartdir_cpp_win32\\ChartDirector\\lib\\chartdir51.dll
James |
|