QuotHow about you show us the relavent code lines and the full compiler output.ed Text Here
I'm building a library not compiling a program.
Thats all the output there is. The inputs are the multiple include and library directories of all the dependencies I have used.
Problem solved now anyway. I simply used an earlier version of cmake to generate a makefile which for some odd reason resolves the problem.
Does anyone know how to call a binary executable file from another program.
I have a simple binary file which can take command line arguments called InputProgram.exe.
I have made another program of which I want to call InputProgram from and pass it an argument.
Not this is going to look naive but this is what I have. It doesn't work?
I genuinly don't know how to do it?
include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
char x;
cin >> x;
cout << x + " " + (InputProgram p) << endl;
system("pause>null");
}
I'm building pdf software with multiple dependencies (podofo) and when compiling I'm getting the errors.
error: conflicting declaration 'typdef short int unit 8'
error: conflicting declaration 'typdef short int unit 16'
Would anyone know if there a CXX Define command I can use to bypass these errors? My CXX flags module is below. I've already added -DHAVE_BOOLEAN to get rid of a boolean error (as you can see). This has worked.
# Generated by "MinGW Makefiles" Generator, CMake Version 2.8
# compile CXX with C:/CodeBlocks/MinGW/bin/g++.exe
# compile RC with C:/CodeBlocks/MinGW/bin/windres.exe
CXX_FLAGS = @CMakeFiles/podofo_static.dir/includes_CXX.rsp -Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual -Wwrite-strings -Wredundant-decls -Wreorder -Wold-style-cast
CXX_DEFINES = -D_CRT_SECURE_NO_DEPRECATE -DHAVE_BOOLEAN
RC_FLAGS = -IC:\libjpeg\jpeg-8a -IC:\boost_1_52_0 -IC:\libpng -IC:\zlib -IC:\boost_1_52_0 -IC:\podofo-0.9.1\podofo_debug -IC:\podofo-0.9.1 -IC:\podofo-0.9.1\src -IC:\freetype2-source\freetype-2.4.11\include -IC:\podofo-0.9.1\vcincludes -Wall -Woverloaded-virtual -Wswitch-enum -Wcast-qual -Wwrite-strings -Wredundant-decls -Wreorder -Wold-style-cast
RC_DEFINES = -D_CRT_SECURE_NO_DEPRECATE
# TARGET_FLAGS = -DBUILDING_PODOFO
I just build Boost_1_52_0 and the resulting Boost Include directory and Lib directory appeared outside the boost directory folder. Is this supposed to happen?
I placed a directory on my C drive called 'Boost' (C:\Boost). I then unzipped the contents into that folder. Another folder containing the boost source code resulted from the unzipping process (c:\Boost\Boost_1_52_0) and built the library so that it would appear in that directory. In command prompt cd C:\Boost\Boost_1_52_0.
When I built the boost library the Include directory and Lib directory appeared in the C:\Boost directory.
Would it be because I've used as similar name 'Boost' in both directory names? I just thought it may have been a result of this.
Thanks. I've taken a look an it's definetly something along this line.
I'm pretty vuage about html so still need to learn the terminology.
I'm building a C++ applicaiton and have very little to do with HTML in the past.
I'm using wxwidgets at the moment but want to try to use HTML. Is that realistic?
With HTML can I build a GUI and use it like a normal GUI or am I missing a fundamental point here?
Is there a HTML gui creating program I can use for this kind of thing?
I'm still looking into it but just thought that if there was an obvious choice out there then someone well versed
in this field may be able to tell me.
Thanks
Has anyone ever used PLPLOT. I'm trying to compile one of the examples (which build successfully during the plplot build process) but I want to build the example individually. It's proving very challenging.
A million linker errors and no clue on their website as to what is going wrong.
I've listed the linker paths I've included below. I've even tried just using the library file libplplotcxxd.a on its own but still the same error. Yes, the include paths have been set as well., Pretty easy to get right.
I had a similare problem with another open source package some time ago and it turned out to be due to a pre-processor macro at the top of the source file wasn't there. I don't seem to be able to solve this the same way.
I'll list the errors for what it's worth.. Below my linker settings.''
Linker Paths and files
C:\plplot\lib\csa\libcsirocsa.a
C:\plplot\lib\qsastime\libqsastime.a
C:\plplot\bindings\c++\libplplotcxxd.a
C:\plplot\src\libplplotd.a
Build started on: 15-12-2012 at 21:04.37
Build ended on: 15-12-2012 at 21:04.40
-------------- Build: Debug in plplot1 ---------------
mingw32-g++.exe -LC:\plplot\lib -LC:\plplot\lib -LC:\CodeBlocks\sqlite_ -LC:\podofo-0.9.1\podofo-debug\src\CMakeFiles\podofo_static.dir\doc -LC:\podofo-0.9.1\podofo-debug\src\CMakeFiles\podofo_static.dir\base -o bin\Debug\plplot1.exe obj\Debug\plplot\examples\c++\x03.o C:\plplot\src\libplplotd.a C:\plplot\bindings\c++\libplplotcxxd.a C:\plplot\lib\qsastime\libqsastime.a C:\plplot\lib\csa\libcsirocsa.a C:\plplot\src\libplplotd.a C:\plplot\bindings\c++\libplplotcxxd.a C:\plplot\lib\qsastime\libqsastime.a C:\plplot\lib\csa\libcsirocsa.a
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x30c): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x363): undefined reference to `ExtTextOutA@32'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x381): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x3f4): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x480): undefined reference to `BitBlt@36'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x4a1): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x6c9): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x720): undefined reference to `ExtTextOutA@32'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x73e): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xd54): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xd72): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xdbd): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xddb): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1010): undefined reference to `SetPolyFillMode@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x102e): undefined reference to `SetPolyFillMode@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x112b): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x116b): undefined reference to `Polyline@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1199): undefined reference to `SetPixel@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x11ba): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x12c0): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x12eb): undefined reference to `Polyline@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x130c): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1449): undefined reference to `CreateSolidBrush@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1473): undefined reference to `CreatePen@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1497): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x14bb): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x14e6): undefined reference to `Polygon@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1507): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x151b): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1536): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1544): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1588): undefined reference to `DeleteDC@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x15a9): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x15bd): undefined reference to `CreateCompatibleDC@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1612): undefined reference to `CreateCompatibleBitmap@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x163c): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x16a8): undefined reference to `BitBlt@36'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x16c9): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1c69): undefined reference to `DeleteDC@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1cb5): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1d82): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1da8): undefined reference to `CreatePen@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1e08): undefined reference to `SetROP2@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1e26): undefined reference to `SetROP2@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x21e0): undefined reference to `SetPixel@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2234): undefined reference to `SetPixelV@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2285): undefined reference to `SetPixel@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x22d6): undefined reference to `SetPixelV@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x231f): undefined reference to `GetPixel@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2366): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x23a7): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2571): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2593): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x265b): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2696): more undefined references to `GetDeviceCaps@8' follow
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2871): undefined reference to `PrintDlgA@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2992): undefined reference to `StartDocA@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x29b1): undefined reference to `EndDoc@4'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x15d): undefined reference to `FT_Get_Kerning'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x18f): undefined reference to `FT_Load_Char'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x24b): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x323): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x375): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x3ec): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x452): undefined reference to `FT_Get_Kerning'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x499): undefined reference to `FT_Load_Char'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0xe90): undefined reference to `FT_Init_FreeType'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x12cd): undefined reference to `FT_Done_Face'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1314): undefined reference to `FT_New_Face'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x13a9): undefined reference to `FT_Set_Char_Size'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x158f): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x15ba): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17a0): undefined reference to `FT_Matrix_Multiply'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17bd): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17e8): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1bc5): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1c89): undefined reference to `FT_Done_Library'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x2058): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x20b8): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x20ed): undefined reference to `FT_Load_Char'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
50 errors, 0 warnings
I usually get too frustrated with MingW and go back to Cygwin and a real GCC/G++ compiler set... :-)
haha.. good advice. Your definetly right not the frustration part. I have thought of Cygwin and I think you're right about that. The issue is with MinGW itself in this case. There's a few dozen headers and lib files missing from it. If I apply the instructions on the below link, it actually builds.
http://www.codeproject.com/Tips/75491/GDI-Programming-With-MinGW
Having said that, I really don't want to be relying on dll's for anything so I try my best to solve MinGW issues if I can. Trying to build projects statically linked.
I have tried a newer version, this time with a different error.
It looks like gnuplot is trying to find a 'hcw' file. That's found in HTML Help Workshop package supposedly. But it's not there.
Anybody know what else this may be called? An hcw file must be something else now.
There's another Makefile specifically for MinGW, when I adjust and use it I get the below errors.
The file gdiplus.h is from libgd of which I have successfully built. For some reason the below error is indicating that libgd can't be found. There's no reference to how it should be found in the Makefile. Is there another file I should adjust to direct gnuplot to libgd? Gnuplot seems to find the other librarys such as libpng and freetype2 but not libgd?
Any clues?
xxxx@XXXX-E0A0BDAF9E /c/gnuplot/config/mingw
$ make all
make TARGET=gnuplot.exe gnuplot.exe
make[1]: Entering directory `/c/gnuplot/config/mingw'
g++ -c -o wgdiplus.co ../../src/win/wgdiplus.cpp
../../src/win/wgdiplus.cpp:30:21: error: gdiplus.h: No such file or directory
../../src/win/wgdiplus.cpp:32: error: 'Gdiplus' is not a namespace-name
../../src/win/wgdiplus.cpp:32: error: expected namespace-name before ';' token
../../src/win/wgdiplus.cpp: In function 'void gdiplusInit()':
../../src/win/wgdiplus.cpp:42: error: 'GdiplusStartupInput' was not declared in this scope
../../src/win/wgdiplus.cpp:42: error: expected ';' before 'gdiplusStartupInput'
../../src/win/wgdiplus.cpp:43: error: 'gdiplusStartupInput' was not declared in this scope
../../src/win/wgdiplus.cpp:43: error: 'GdiplusStartup' was not declared in this scope
../../src/win/wgdiplus.cpp: In function 'void gdiplusCleanup()':
../../src/win/wgdiplus.cpp:52: error: 'GdiplusShutdown' was not declared in this scope
../../src/win/wgdiplus.cpp: At global scope:
../../src/win/wgdiplus.cpp:57: error: 'Color' does not name a type
../../src/win/wgdiplus.cpp:66: error: expected initializer before '*' token
../../src/win/wgdiplus.cpp: In function 'void gdiplusLineEx(HDC__*, POINT, POINT, UINT, float, COLORREF)':
../../src/win/wgdiplus.cpp:90: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:90: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:95: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:95: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:97: error: 'Pen' was not declared in this scope
../../src/win/wgdiplus.cpp:97: error: 'pen' was not declared in this scope
../../src/win/wgdiplus.cpp:97: error: 'gdiplusCreatePen' was not declared in this scope
../../src/win/wgdiplus.cpp:98: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:99: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusPolylineEx(HDC__*, POINT*, int, UINT, float, COLORREF)':
../../src/win/wgdiplus.cpp:112: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:112: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:117: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:117: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:119: error: 'Pen' was not declared in this scope
../../src/win/wgdiplus.cpp:119: error: 'pen' was not declared in this scope
../../src/win/wgdiplus.cpp:119: error: 'gdiplusCreatePen' was not declared in this scope
../../src/win/wgdiplus.cpp:120: error: 'Point' was not declared in this scope
../../src/win/wgdiplus.cpp:120: error: 'points' was not declared in this scope
../../src/win/wgdiplus.cpp:120: error: expected type-specifier before 'Point'
../../src/win/wgdiplus.cpp:120: error: expected ';' before 'Point'
../../src/win/wgdiplus.cpp:125: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:126: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp:127: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusSolidFilledPolygonEx(HDC__*, POINT*, int, COLORREF, double)':
../../src/win/wgdiplus.cpp:134: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:134: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:135: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:135: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:137: error: 'Color' was not declared in this scope
../../src/win/wgdiplus.cpp:137: error: expected ';' before 'gdipColor'
../../src/win/wgdiplus.cpp:138: error: 'Point' was not declared in this scope
../../src/win/wgdiplus.cpp:138: error: 'points' was not declared in this scope
../../src/win/wgdiplus.cpp:138: error: expected type-specifier before 'Point'
../../src/win/wgdiplus.cpp:138: error: expected ';' before 'Point'
../../src/win/wgdiplus.cpp:143: error: 'SolidBrush' was not declared in this scope
../../src/win/wgdiplus.cpp:143: error: expected ';' before 'brush'
../../src/win/wgdiplus.cpp:144: error: 'brush' was not declared in this scope
../../src/win/wgdiplus.cpp:145: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusPatternFilledPolygonEx(HDC__*, POINT*, int, COLORREF, double, COLORREF, BOOL, int)
':
../../src/win/wgdiplus.cpp:152: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:152: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:153: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:153: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:155: error: 'Color' was not declared in this scope
../../src/win/wgdiplus.cpp:155: error: expected ';' before 'gdipColor'
../../src/win/wgdiplus.cpp:156: error: expected ';' before 'gdipBackColor'
../../src/win/wgdiplus.cpp:157: error: 'Brush' was not declared in this scope
../../src/win/wgdiplus.cpp:157: error: 'brush' was not declared in this scope
../../src/win/wgdiplus.cpp:159: error: 'HatchStyle' does not name a type
../../src/win/wgdiplus.cpp:165: error: expected type-specifier before 'SolidBrush'
../../src/win/wgdiplus.cpp:165: error: expected ';' before 'SolidBrush'
../../src/win/wgdiplus.cpp:168: error: expected type-specifier before 'SolidBrush'
../../src/win/wgdiplus.cpp:168: error: expected ';' before 'SolidBrush'
../../src/win/wgdiplus.cpp:171: error: expected type-specifier before 'HatchBrush'
../../src/win/wgdiplus.cpp:171: error: expected ';' before 'HatchBrush'
../../src/win/wgdiplus.cpp:173: error: 'Point' was not declared in this scope
../../src/win/wgdiplus.cpp:173: error: 'points' was not declared in this scope
../../src/win/wgdiplus.cpp:173: error: expected type-specifier before 'Point'
../../src/win/wgdiplus.cpp:173: error: expected ';' before 'Point'
../../src/win/wgdiplus.cpp:179: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp:180: error: type '<type error>' argument given to 'delete', expected pointer
../../src/win/wgdiplus.cpp: In function 'void gdiplusCircleEx(HDC__*, POINT*, int, UINT, float, COLORREF)':
../../src/win/wgdiplus.cpp:187: error: 'Graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:187: error: expected ';' before 'graphics'
../../src/win/wgdiplus.cpp:188: error: 'graphics' was not declared in this scope
../../src/win/wgdiplus.cpp:188: error: 'SmoothingModeAntiAlias' was not declared in this scope
../../src/win/wgdiplus.cpp:190: error: 'Pen' was not declared in this scope
../../src/win/wgdiplus.cpp:190: error: 'pen' was not declared in this scope
../../src/win/wgdiplus.cpp:190: error: 'gdiplusCreatePen' was not declared in this scope
../../src/win/wgdiplus.cpp:192: error: type '<type error>' argument given to 'delete', expected pointer
make[1]: *** [wgdiplus.co] Error 1
make[1]: Leaving directory `/c/gnuplot/config/mingw'
make: *** [console] Error 2
Well, it would make sense.. gnuplot and gnulib.. haha.
I'm not a great interpretor of these things but would gnulib be a dependency of gnuplot?
I'm not overly familiar with the whole gnu thing but it would be handy to know this for the future.
thanks
No, I just did a search on my entire C drive and have nothing of the sort. I can see the alternative in readline.c 'termios' as opposed to 'termio'. I'm sure it's simple.
I noticed on a few posts around the web, there's allot of talk about these being related to linux and unix. Maybe I've forgotton to set something in the makefile which is doing this.
If I knew what the file was I might have a better chance of fixing it.
I can't even find the file. The file readline.c references it but not sure where termio.h is supposed to be?
Do you know?
Anybody know what the below means. I'm building Gnuplot on Windows XP with a MinGW compiler.
It could have something to do with the flags at the top of the message below but I don't know how to work that out.
Error starts 8 lines down.
gcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term -DBINDIR=\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.6\" -DQT_
DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.6\" -DGNUPLOT_SHARE_DIR=\"/usr/local/share/gnuplot/4.6\" -DGNUPLOT_PS_DIR=\"/usr/local/share/
gnuplot/4.6/PostScript\" -DGNUPLOT_JS_DIR=\"/usr/local/share/gnuplot/4.6/js\" -DGNUPLOT_LUA_DIR=\"/usr/local/share/gnuplot/4.6/lua\" -D
CONTACT=\"gnuplot-bugs@lists.sourceforge.net\" -DHELPFILE=\"/usr/local/share/gnuplot/4.6/gnuplot.gih\" -DGNUPLOT_X11=\"`echo gnuplot_x1
1 | sed 's,x,x,'`.exe\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -g -O2 -MT readline.o -MD -MP -MF .deps/readline.Tpo -c -o readline
.o readline.c
readline.c:220:23: error: termio.h: No such file or directory
readline.c:233: error: 'NCC' undeclared here (not in a function)
readline.c: In function 'set_termio':
readline.c:1250: error: 'TCGETA' undeclared (first use in this function)
readline.c:1250: error: (Each undeclared identifier is reported only once
readline.c:1250: error: for each function it appears in.)
readline.c:1257: error: 'rl_termio' has an incomplete type
readline.c:1283: error: invalid use of undefined type 'struct termio'
readline.c:1283: error: 'BRKINT' undeclared (first use in this function)
readline.c:1283: error: 'PARMRK' undeclared (first use in this function)
readline.c:1283: error: 'INPCK' undeclared (first use in this function)
readline.c:1283: error: 'IUCLC' undeclared (first use in this function)
readline.c:1283: error: 'IXON' undeclared (first use in this function)
readline.c:1283: error: 'IXOFF' undeclared (first use in this function)
readline.c:1284: error: invalid use of undefined type 'struct termio'
readline.c:1284: error: 'IGNBRK' undeclared (first use in this function)
readline.c:1284: error: 'IGNPAR' undeclared (first use in this function)
readline.c:1288: error: invalid use of undefined type 'struct termio'
readline.c:1288: error: 'ICANON' undeclared (first use in this function)
readline.c:1288: error: 'ECHO' undeclared (first use in this function)
readline.c:1288: error: 'ECHOE' undeclared (first use in this function)
readline.c:1288: error: 'ECHOK' undeclared (first use in this function)
readline.c:1288: error: 'ECHONL' undeclared (first use in this function)
readline.c:1288: error: 'NOFLSH' undeclared (first use in this function)
readline.c:1293: error: invalid use of undefined type 'struct termio'
readline.c:1293: error: 'ISIG' undeclared (first use in this function)
readline.c:1294: error: invalid use of undefined type 'struct termio'
readline.c:1294: error: 'VMIN' undeclared (first use in this function)
readline.c:1295: error: invalid use of undefined type 'struct termio'
readline.c:1295: error: 'VTIME' undeclared (first use in this function)
readline.c:1300: error: 'VERASE' undeclared (first use in this function)
readline.c:1300: error: invalid use of undefined type 'struct termio'
readline.c:1301: error: 'VEOF' undeclared (first use in this function)
readline.c:1301: error: invalid use of undefined type 'struct termio'
readline.c:1302: error: 'VKILL' undeclared (first use in this function)
readline.c:1302: error: invalid use of undefined type 'struct termio'
readline.c:1332: error: 'TCSETAW' undeclared (first use in this function)
readline.c: In function 'reset_termio':
readline.c:1361: error: 'TCSETAW' undeclared (first use in this function)
make[3]: *** [readline.o] Error 1
make[3]: Leaving directory `/c/gnuplot/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/gnuplot/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/gnuplot'
make: *** [all] Error 2
xxxx@XXXX-E0A0BDAF9E /c/gnuplot
$
I tried using CMAKE to create a makefile and then tried building using 'make install' and got the below error.
make[1]: Entering directory `/c/libgd'
if gcc -DHAVE_CONFIG_H -DHAVE_BOOLEAN -I. -I. -I. -I/usr/local/include/freetype2 -I/usr/local/include -g -O2 -MT
gdcmpgif.o -MD -MP -MF ".deps/gdcmpgif.Tpo" -c -o gdcmpgif.o gdcmpgif.c; \
then mv -f ".deps/gdcmpgif.Tpo" ".deps/gdcmpgif.Po"; else rm -f ".deps/gdcmpgif.Tpo"; exit 1; fi
In file included from gdcmpgif.c:9:
gd.h:38:1: warning: "BGD_DECLARE" redefined
gd.h:32:1: warning: this is the location of the previous definition
In file included from gdcmpgif.c:9:
gd.h:728: error: conflicting types for 'gdNewFileCtx'
./io.h:39: note: previous declaration of 'gdNewFileCtx' was here
gd.h:735: error: conflicting types for 'gdNewDynamicCtx'
./io.h:40: note: previous declaration of 'gdNewDynamicCtx' was here
gd.h:746: error: conflicting types for 'gdDPExtractData'
./io.h:41: note: previous declaration of 'gdDPExtractData' was here
make[1]: *** [gdcmpgif.o] Error 1
make[1]: Leaving directory `/c/libgd'
make: *** [install-recursive] Error 1
Well, it depends on which version I use.
An earlier version gives me the below errors. I tried adjusting the CmakeLists File to include all the requiremens for libgd and now it's telling me that it can't see jpeglib.h which is obviously the Libjpeg header.
Has anyone built libgd on windows?
The instructions say the below.
The following 3rd-party libraries will be used by gd if found by configure.
While gd will compile and install even without these, we suggest that at
least zlib and libpng are installed, and recommend that freetype and jpeg
are installed as well:
So I could even get away without libjpeg but having said that it should build with it?
C:\libgd>mingw32-make -f Makefile
[ 3%] Building C object CMakeFiles/gd.dir/gd_jpeg.obj
C:\libgd\gd_jpeg.c:47:21: error: jpeglib.h: No such file or directory
C:\libgd\gd_jpeg.c:48:20: error: jerror.h: No such file or directory
C:\libgd\gd_jpeg.c:60: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:112: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c: In function 'gdImageJpegCtx':
C:\libgd\gd_jpeg.c:116: error: storage size of 'cinfo' isn't known
C:\libgd\gd_jpeg.c:117: error: storage size of 'jerr' isn't known
C:\libgd\gd_jpeg.c:120: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'row'
C:\libgd\gd_jpeg.c:120: error: 'row' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:120: error: (Each undeclared identifier is reported only once
C:\libgd\gd_jpeg.c:120: error: for each function it appears in.)
C:\libgd\gd_jpeg.c:121: error: 'JSAMPROW' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:121: error: expected ';' before 'rowptr'
C:\libgd\gd_jpeg.c:123: error: 'JDIMENSION' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:123: error: expected ';' before 'nlines'
C:\libgd\gd_jpeg.c:154: error: 'fatal_jpeg_error' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:161: error: 'JCS_RGB' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:178: error: expected ';' before 'gdCalloc'
C:\libgd\gd_jpeg.c:188: error: 'rowptr' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:193: error: 'JPEG_LIB_VERSION' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:198: error: 'JPEG_COM' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:222: error: 'nlines' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:250:2: error: #error IJG JPEG library BITS_IN_JSAMPLE value must be 8 or 12
C:\libgd\gd_jpeg.c: At top level:
C:\libgd\gd_jpeg.c:283: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c: In function 'gdImageCreateFromJpegCtx':
C:\libgd\gd_jpeg.c:293: error: storage size of 'cinfo' isn't known
C:\libgd\gd_jpeg.c:294: error: storage size of 'jerr' isn't known
C:\libgd\gd_jpeg.c:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'row'
C:\libgd\gd_jpeg.c:297: error: 'row' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:299: error: 'JSAMPROW' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:299: error: expected ';' before 'rowptr'
C:\libgd\gd_jpeg.c:301: error: 'JDIMENSION' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:301: error: expected ';' before 'nrows'
C:\libgd\gd_jpeg.c:325: error: 'fatal_jpeg_error' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:333: error: 'JPEG_APP0' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:336: error: 'JPEG_HEADER_OK' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:360: error: 'JCS_CMYK' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:361: error: 'JCS_YCCK' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:367: error: 'JCS_RGB' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:444: error: 'jpeg_saved_marker_ptr' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:444: error: expected ';' before 'marker'
C:\libgd\gd_jpeg.c:453: error: 'marker' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:481: error: 'JSAMPLE' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:488: error: 'rowptr' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'currow'
C:\libgd\gd_jpeg.c:493: error: 'currow' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:495: error: 'nrows' undeclared (first use in this function)
C:\libgd\gd_jpeg.c:514: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'currow'
C:\libgd\gd_jpeg.c: At top level:
C:\libgd\gd_jpeg.c:634: error: field 'pub' has incomplete type
C:\libgd\gd_jpeg.c:653: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:700: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:768: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:810: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:828: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:866: error: field 'pub' has incomplete type
C:\libgd\gd_jpeg.c:882: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:920: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:945: error: expected ')' before 'cinfo'
C:\libgd\gd_jpeg.c:966: error: expected ')' before 'cinfo'
mingw32-make[2]: *** [CMakeFiles/gd.dir/gd_jpeg.obj] Error 1
mingw32-make[1]: *** [CMakeFiles/gd.dir/all] Error 2
mingw32-make: *** [all] Error 2
I'm trying to build libgd and can't seem to get past this error. It configures without error but when I go to
make Install the below error occurs. Would anyone know how to get past this?
WinXP, MingW.
Thanks.
gdfontg.c:4380: error: variable 'gdFontGiant' definition is marked dllimport
gdfontg.c:4380: warning: 'gdFontGiant' redeclared without dllimport attribute: previous dllimport ignored
It works. Actually, both the below work.
char data[] = "Callback Function called";
char *data = "Callback Function called";
Thanks.