Lazarus

Free Pascal => Beginners => Topic started by: Nebulix on May 26, 2015, 02:30:42 pm

Title: $V-
Post by: Nebulix on May 26, 2015, 02:30:42 pm
I get an error message : String types have to match exactly in $V+ mode. Though I put {$V-} in my program and units. How can I put the $V- options as default ?
Title: Re: $V-
Post by: howardpc on May 26, 2015, 04:31:51 pm
Do your routine(s) that give this error really need to pass (presumably) shortstring parameters by reference? Would passing by value be OK (which never invokes the $V compiler check)?
Title: Re: $V-
Post by: Nebulix on May 26, 2015, 05:19:43 pm
I had a string[80] that I changed into a plain string and the compilation went on. Though I wish really to understand how the compilator options work in FP.
Title: Re: $V-
Post by: Leledumbo on May 26, 2015, 08:40:51 pm
I had a string[80] that I changed into a plain string and the compilation went on. Though I wish really to understand how the compilator options work in FP.
http://www.freepascal.org/docs-html/prog/progsu77.html
TinyPortal © 2005-2018