Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-09

Commandline to compile projects with generics

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

luciano de souza

Hello all,

I don't use Lazarus, but only Freepascal. Untill the generics advent, I used to compile my projects with the following commandline:

fpc progname.pp

However, using generics, it was common an access violation in compiling time. A friend said that codes with generics sould be compiled with:

fpc progname.pp -B -Scghi -O1 -gw2 -godwarfsets -gl -vewnhi

Yes, it works, but why is it not possible to compile programs with generics with the conventional method?

Regards,

Luciano de Souza

Reply by email

leledumbo
to luciano de souza
Yes, it works, but why is it not possible to compile programs with

generics with the conventional method?

Compiler bug, which luckily gets fixed by specifying additional compiler options. In normal case, there should be no difference between compiling non-generic and generic code WRT compiler option.

View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Commandline-to-compile-projects-with-generics-tp5720141p5720143.html Sent from the Free Pascal - General mailing list .

Reply by email

luciano de souza
to leledumbo

Wonderful! Generics are one of the best things has succeed in Freepascal.

I suppose this correction will be available in FPC 2.8. Is there some prevision when it will be launched? A friend took a look at GIT updates and he was very happy with the advances.
2014-09-22 12:51 GMT-03:00, leledumbo :

Show quoted text 17 lines
> Yes, it works, but why is it not possible to compile programs with generics with the conventional method? Compiler bug, which luckily gets fixed by specifying additional compiler options. In normal case, there should be no difference between compiling non-generic and generic code WRT compiler option. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Commandline-to-compile-projects-with-generics-tp5720141p5720143.html Sent from the Free Pascal - General mailing list . _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Luciano de Souza

Reply by email

Sven Barth
to luciano de souza: I don't use Lazarus, but only Freepascal. Untill the generics advent, I used to compile…
"luciano de souza" wrote
Yes, it works, but why is it not possible to compile programs with generics with the conventional method?

You are using a 2.6 series compiler, right? If so then this is likely fixed in 2.7.1, which has vast improvements regarding generics. There is no estimate when the next major release will be done as we have not even branched it yet and once that is done it will take around 6 months for release preparations.

Regards,
Sven

Reply by email

luciano de souza
to Sven Barth

Yes, I use 2.6.4 version.

Well, the important is that work is being doing and the time will arrive.

2014-09-22 14:05 GMT-03:00, Sven Barth :

Show quoted text 13 lines
Am 22.09.2014 15:53 schrieb "luciano de souza" : > Yes, it works, but why is it not possible to compile programs with > generics with the conventional method? You are using a 2.6 series compiler, right? If so then this is likely fixed in 2.7.1, which has vast improvements regarding generics. There is no estimate when the next major release will be done as we have not even branched it yet and once that is done it will take around 6 months for release preparations. Regards, Sven
Luciano de Souza

Reply by email