Re: [fpc-pascal] Re: weird compile error message

2013-09-11 Thread Sven Barth
Am 12.09.2013 03:14 schrieb "Xiangrong Fang" : > > Hi Sven, > >> Additional note: The "PTree = ^TTree" in front of the "TTree" is wrong and only supported by pre-2.7.1 FPC by accident. The correct code would be: > > > I removed PTree yesterday and this problem is gone. I now understand that it is

Re: [fpc-pascal] Re: weird compile error message

2013-09-11 Thread Sven Barth
Am 12.09.2013 03:46 schrieb "Xiangrong Fang" : > I have downloaded fpcbuild.zip and did 'NOGDB=1 make build', as it tell me cannot find libgdb.a... Just ignore the libgdb stuff. It's only needed for the textmode IDE. > Now my question is how can I install the binaries so that it does NOT interfer

Re: [fpc-pascal] Re: weird compile error message

2013-09-11 Thread Xiangrong Fang
Hi Sven, I have downloaded fpcbuild.zip and did 'NOGDB=1 make build', as it tell me cannot find libgdb.a... Now my question is how can I install the binaries so that it does NOT interfere with my current 2.6.2 build? Thanks! ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: weird compile error message

2013-09-11 Thread Xiangrong Fang
Hi Sven, Additional note: The "PTree = ^TTree" in front of the "TTree" is wrong and > only supported by pre-2.7.1 FPC by accident. The correct code would be: > I removed PTree yesterday and this problem is gone. I now understand that it is not necessary to define PTree as TTree is a pointer anyw

Re: [fpc-pascal] Re: weird compile error message

2013-09-11 Thread Sven Barth
On 11.09.2013 17:01, Xiangrong Fang wrote: Hi, "Missing -T" is not the problem, the problem is "undefined reference", which caused fatal error. I filed a bug report: http://bugs.freepascal.org/view.php?id=25001 I am pretty sure this is a bug, becuase while I continue to add code to my TTree cl

Re: [fpc-pascal] Re: weird compile error message

2013-09-11 Thread Xiangrong Fang
Hi, "Missing -T" is not the problem, the problem is "undefined reference", which caused fatal error. I filed a bug report: http://bugs.freepascal.org/view.php?id=25001 I am pretty sure this is a bug, becuase while I continue to add code to my TTree class, this problem is gone! In another word,

[fpc-pascal] Re: weird compile error message

2013-09-11 Thread leledumbo
http://freepascal.org/faq.var#unix-ld219 -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/weird-compile-error-message-tp5716396p5716421.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ f

[fpc-pascal] Re: weird compile error message

2013-09-11 Thread Xiangrong Fang
Hi, I found the problem, but don't know the cause or how to fix it. First of all, my main code (project1.lpr) has just added the tree unit into "uses", but not actually use any of it. The problem occurs if I compile it using the Lazarus settings: fpc -MObjFPC -Scghi -O1 -g -gl -vewnhi -Filib/x8