News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Error with png.h when compiling latest Makeobj

Started by Rollmaterial, October 26, 2015, 09:25:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rollmaterial

I'm trying to compile the latest Makeobj but png.h seems to be faulty, does anyone know where I can find a working/compatible libpng?

jamespetts

Can you elaborate on what error that you are getting and in what environment that you are compiling? It will help to track down the problem that you are having.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Junna

Make sure you are compiling makeobj-experimental and not generic "makeobj". I've had this problem when I accidentally tried to compile the wrong one.

Rollmaterial

The problem occurs in Experimental too. First I got an error message for missing png.h, so I downloaded the latest libpng from the page given in the readme. Now I get these errors:

QuoteError   14   error C2146: syntax error : missing ';' before identifier 'png_uint_32'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1043   1   Makeobj-experimental
Error   15   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1043   1   Makeobj-experimental
Error   16   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1048   1   Makeobj-experimental
Error   17   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1048   1   Makeobj-experimental
Error   18   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1048   1   Makeobj-experimental
Error   19   error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1056   1   Makeobj-experimental
Error   20   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1056   1   Makeobj-experimental
Error   21   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1056   1   Makeobj-experimental
Error   22   error C2144: syntax error : 'int' should be preceded by ';'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1067   1   Makeobj-experimental
Error   23   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1067   1   Makeobj-experimental
Error   24   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1067   1   Makeobj-experimental
Error   25   error C2059: syntax error : '__cdecl'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1067   1   Makeobj-experimental
Error   26   error C2144: syntax error : 'int' should be preceded by ';'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1073   1   Makeobj-experimental
Error   27   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1073   1   Makeobj-experimental
Error   28   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1073   1   Makeobj-experimental
Error   29   error C2059: syntax error : '__cdecl'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1073   1   Makeobj-experimental
Error   30   error C2146: syntax error : missing ';' before identifier 'png_size_t'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1076   1   Makeobj-experimental
Error   31   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1076   1   Makeobj-experimental
Error   32   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1076   1   Makeobj-experimental
Error   33   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1079   1   Makeobj-experimental
Error   34   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1079   1   Makeobj-experimental
Error   35   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1079   1   Makeobj-experimental
Error   36   error C2146: syntax error : missing ';' before identifier 'jmp_buf'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1093   1   Makeobj-experimental
Error   37   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1093   1   Makeobj-experimental
Error   38   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1093   1   Makeobj-experimental
Error   39   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1106   1   Makeobj-experimental
Error   40   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1106   1   Makeobj-experimental
Error   41   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1106   1   Makeobj-experimental
Error   42   error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1110   1   Makeobj-experimental
Error   43   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1110   1   Makeobj-experimental
Error   44   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1110   1   Makeobj-experimental
Error   45   error C2144: syntax error : 'int' should be preceded by ';'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1119   1   Makeobj-experimental
Error   46   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1119   1   Makeobj-experimental
Error   47   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1119   1   Makeobj-experimental
Error   48   error C2059: syntax error : '__cdecl'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1119   1   Makeobj-experimental
Error   49   error C2144: syntax error : 'int' should be preceded by ';'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1124   1   Makeobj-experimental
Error   50   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1124   1   Makeobj-experimental
Error   51   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1124   1   Makeobj-experimental
Error   52   error C2059: syntax error : '__cdecl'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1124   1   Makeobj-experimental
Error   53   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1128   1   Makeobj-experimental
Error   54   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1128   1   Makeobj-experimental
Error   55   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1128   1   Makeobj-experimental
Error   56   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1132   1   Makeobj-experimental
Error   57   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1132   1   Makeobj-experimental
Error   58   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1132   1   Makeobj-experimental
Error   59   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1136   1   Makeobj-experimental
Error   60   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1136   1   Makeobj-experimental
Error   61   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1136   1   Makeobj-experimental
Error   62   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1140   1   Makeobj-experimental
Error   63   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1140   1   Makeobj-experimental
Error   64   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1140   1   Makeobj-experimental
Error   65   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1143   1   Makeobj-experimental
Error   66   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1143   1   Makeobj-experimental
Error   67   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1143   1   Makeobj-experimental
Error   68   error C2144: syntax error : 'int' should be preceded by ';'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1147   1   Makeobj-experimental
Error   69   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1147   1   Makeobj-experimental
Error   70   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1147   1   Makeobj-experimental
Error   71   error C2059: syntax error : '__cdecl'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1147   1   Makeobj-experimental
Error   72   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1154   1   Makeobj-experimental
Error   73   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1154   1   Makeobj-experimental
Error   74   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1154   1   Makeobj-experimental
Error   75   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1158   1   Makeobj-experimental
Error   76   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1158   1   Makeobj-experimental
Error   77   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1158   1   Makeobj-experimental
Error   78   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1160   1   Makeobj-experimental
Error   79   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1160   1   Makeobj-experimental
Error   80   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1160   1   Makeobj-experimental
Error   81   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1165   1   Makeobj-experimental
Error   82   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1165   1   Makeobj-experimental
Error   83   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1165   1   Makeobj-experimental
Error   84   error C2144: syntax error : 'int' should be preceded by ';'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1176   1   Makeobj-experimental
Error   85   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1176   1   Makeobj-experimental
Error   86   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1176   1   Makeobj-experimental
Error   87   error C2059: syntax error : '__cdecl'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1176   1   Makeobj-experimental
Error   88   error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1179   1   Makeobj-experimental
Error   89   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1179   1   Makeobj-experimental
Error   90   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1179   1   Makeobj-experimental
Error   91   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1185   1   Makeobj-experimental
Error   92   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1185   1   Makeobj-experimental
Error   93   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1185   1   Makeobj-experimental
Error   94   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1188   1   Makeobj-experimental
Error   95   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1188   1   Makeobj-experimental
Error   96   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1188   1   Makeobj-experimental
Error   97   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1193   1   Makeobj-experimental
Error   98   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1193   1   Makeobj-experimental
Error   99   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1193   1   Makeobj-experimental
Error   100   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1194   1   Makeobj-experimental
Error   101   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1194   1   Makeobj-experimental
Error   102   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1194   1   Makeobj-experimental
Error   103   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1195   1   Makeobj-experimental
Error   104   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1195   1   Makeobj-experimental
Error   105   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1195   1   Makeobj-experimental
Error   106   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1196   1   Makeobj-experimental
Error   107   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1196   1   Makeobj-experimental
Error   108   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1196   1   Makeobj-experimental
Error   109   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1203   1   Makeobj-experimental
Error   110   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1203   1   Makeobj-experimental
Error   111   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1203   1   Makeobj-experimental
Error   112   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1208   1   Makeobj-experimental
Error   113   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1208   1   Makeobj-experimental
Error   114   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1208   1   Makeobj-experimental
Error   115   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1213   1   Makeobj-experimental
Error   116   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1213   1   Makeobj-experimental
Error   117   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1213   1   Makeobj-experimental
Error   118   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1224   1   Makeobj-experimental
Error   119   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1224   1   Makeobj-experimental
Error   120   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1224   1   Makeobj-experimental
Error   121   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1226   1   Makeobj-experimental
Error   122   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1226   1   Makeobj-experimental
Error   123   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1226   1   Makeobj-experimental
Error   124   error C2146: syntax error : missing ';' before identifier 'png_byte'   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1229   1   Makeobj-experimental
Error   125   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1229   1   Makeobj-experimental
Error   126   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1229   1   Makeobj-experimental
Error   127   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1372   1   Makeobj-experimental
Error   128   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1372   1   Makeobj-experimental
Error   129   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1372   1   Makeobj-experimental
Error   130   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1377   1   Makeobj-experimental
Error   131   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1377   1   Makeobj-experimental
Error   132   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1377   1   Makeobj-experimental
Error   133   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1382   1   Makeobj-experimental
Error   134   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1382   1   Makeobj-experimental
Error   135   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1382   1   Makeobj-experimental
Error   136   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1388   1   Makeobj-experimental
Error   137   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1388   1   Makeobj-experimental
Error   138   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1388   1   Makeobj-experimental
Error   139   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1394   1   Makeobj-experimental
Error   140   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1394   1   Makeobj-experimental
Error   141   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1394   1   Makeobj-experimental
Error   142   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1399   1   Makeobj-experimental
Error   143   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1399   1   Makeobj-experimental
Error   144   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1399   1   Makeobj-experimental
Error   145   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1404   1   Makeobj-experimental
Error   146   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1404   1   Makeobj-experimental
Error   147   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1404   1   Makeobj-experimental
Error   148   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1410   1   Makeobj-experimental
Error   149   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1410   1   Makeobj-experimental
Error   150   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1410   1   Makeobj-experimental
Error   151   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1416   1   Makeobj-experimental
Error   152   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1416   1   Makeobj-experimental
Error   153   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1416   1   Makeobj-experimental
Error   154   error C2199: syntax error : found 'int (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1427   1   Makeobj-experimental
Error   155   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1427   1   Makeobj-experimental
Error   156   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1427   1   Makeobj-experimental
Error   157   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1432   1   Makeobj-experimental
Error   158   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1432   1   Makeobj-experimental
Error   159   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1432   1   Makeobj-experimental
Error   160   error C2199: syntax error : found 'void (' at global scope (was a declaration intended?)   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1443   1   Makeobj-experimental
Error   161   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1443   1   Makeobj-experimental
Error   162   error C2086: 'int PNG_LINKAGE_API' : redefinition   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1443   1   Makeobj-experimental
Error   163   error C1003: error count exceeds 100; stopping compilation   c:\program files (x86)\microsoft visual studio 11.0\vc\include\png.h   1443   1   Makeobj-experimental

jamespetts

The version that I have is headed:

libpng version 1.2.52 - November 20, 2014

It is in the /utils/openttd directory.

Is this the same for you?

Have you also downloaded the rest of the files specified in the Standard build tutorial?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Rollmaterial

Actually I just forgot to add the directories for the OpenTTD precompiled libraries. This thread can be deleted :)

Isaac Eiland-Hall

I don't mean to contradict you again, but a thread with a problem and solution is always valuable in case someone else has the same problem. :)

saansri

I have also exactly the same errors when compiling my project in visual studio which is using PNG libraries. I have downloaded all the required libraries.
Could you share the steps to add the directories for the OpenTTD precompiled libraries please?
Appreciate your help. Thank You.

Ves

I guess you are looking for step no 6 in this guide: How to compile Simutrans Experimental with MSVC 2012
Step no 6 and 7 explains how to manually add those files to the project.

Rollmaterial

And also, you should compile it in Debug configuration.

saansri

Thank You for the quick reply.
As said I have tried with setting the include library directories both in VC++ and Linker but still getting the same errors :(



saansri

Issues were solved. My mistake I forgot to remove includeded file png.h from solution. Now searching for required libjpeg library which is required in my project.
Thank You,