Re: [fpc-pascal] Unicode support

2012-05-17 Thread Paul Ishenin
17.05.12 2:51, Andrew Brunner wrote: I wanted to ask what the present state of unicode support is now. Compiler supports AnsiStrings with codepage information and converts them between ansistrings and between other string types with implicit codepage conversion. RawByteString and UTF8String a

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Darius Blaszyk
Hi Tomas, That did the trick! I didn't notice the dialogs unit in the implementation section. After removing it everything works fine now. I got opencv running on windows and displaying the webcam feed on a opengl texture. I will put the code on the ccr as soon as I have access again. In the co

Re: [fpc-pascal] Re: Handling with sources and exebutables with different names

2012-05-17 Thread Sven Barth
On 17.05.2012 21:09, luciano de souza wrote: Actually, there are no errors. Using cmd.exe on Windows 7 and FPC 2.6.0, I did: fpc test.pas -oindex.cgi I got test.exe and no errors are raised. But did the compiler write something else? A warning maybe (maybe you need to pass "-vw" to see it)

[fpc-pascal] Re: Handling with sources and exebutables with different names

2012-05-17 Thread luciano de souza
Actually, there are no errors. Using cmd.exe on Windows 7 and FPC 2.6.0, I did: fpc test.pas -oindex.cgi I got test.exe and no errors are raised. We can do -d in the commandline or {$ifdef ..} in the source code. Several other options are available from the two modes. Is there a directive, plac

Re: [fpc-pascal] FSplit is deprecated

2012-05-17 Thread Marco van de Voort
In our previous episode, Bernd said: > unixutil > > another deprecated function that has not written any hint towards its > replacement right behind the 'deprecated' keyword (where it would > belong). The RTL documentation also does not contain any hints. Unixutil is a barrel of leftovers of 1.0.

[fpc-pascal] FSplit is deprecated

2012-05-17 Thread Bernd
unixutil another deprecated function that has not written any hint towards its replacement right behind the 'deprecated' keyword (where it would belong). The RTL documentation also does not contain any hints. ___ fpc-pascal maillist - fpc-pascal@lists.

Re: [fpc-pascal] Handling with sources and exebutables with different names

2012-05-17 Thread Michael Van Canneyt
On Thu, 17 May 2012, luciano de souza wrote: hello all, I am compiling CGI modules with Freepascal in commandline mode. if I do: fpc test.pas the result is "test.exe". But the source name needs to be different from the executable name. For this reason: fpc test.pas -oindex.cgi This comman

Re: [fpc-pascal] Handling with sources and exebutables with different names

2012-05-17 Thread Sven Barth
On 17.05.2012 14:09, luciano de souza wrote: hello all, I am compiling CGI modules with Freepascal in commandline mode. if I do: fpc test.pas the result is "test.exe". But the source name needs to be different from the executable name. For this reason: fpc test.pas -oindex.cgi This command s

[fpc-pascal] Handling with sources and exebutables with different names

2012-05-17 Thread luciano de souza
hello all, I am compiling CGI modules with Freepascal in commandline mode. if I do: fpc test.pas the result is "test.exe". But the source name needs to be different from the executable name. For this reason: fpc test.pas -oindex.cgi This command should result in index.cgi, placed on the curren

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Tomas Hajny
On Thu, May 17, 2012 11:07, dhkblas...@zeelandnet.nl wrote: > Second try. My previous email with attachement got blocked > probably. I will send the files now in two emails. Just put everything > together in one folder. First, I'd recommend renaming your main program from video.pp to something

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Tomas Hajny
On Thu, May 17, 2012 10:11, dhkblas...@zeelandnet.nl wrote: Hi, > I have a simple application that uses glut and opencv. > However as soon as I add the opencv wrapper unit to the uses clause I > get: > > video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" > found > > The compiler d

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Sven Barth
On 17.05.2012 10:11, dhkblas...@zeelandnet.nl wrote: Hi, I have a simple application that uses glut and opencv. However as soon as I add the opencv wrapper unit to the uses clause I get: video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found The compiler does not recognize the

[fpc-pascal] Strange compile error

2012-05-17 Thread dhkblaszyk
Hi, I have a simple application that uses glut and opencv. However as soon as I add the opencv wrapper unit to the uses clause I get: video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found The compiler does not recognize the main unit anymore. I have searched the opencv.p