Compile error in Mingw distribution, but not Borland

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
HGAutomator
Posts: 195
Joined: Thu Jul 16, 2020 5:42 pm
DBs Used: DBF

Compile error in Mingw distribution, but not Borland

Post by HGAutomator »

Hi,

I'm using a function that looks like this

Code: Select all

Function GetSystemClipboard()
Local ClipBoard_s := ""
ClipBoard_s := System.Clipboard
Return ClipBoard_s

, and it compiles with the Borland Minigui distribution.

But when I try to compile it with the Mingw compiler, it can't interpret the '.' dot.

Lines 47, Functions/Procedures 2
Done.ating C source output to 'C:\Users\DCHILD~1\AppData\Local\Temp\1\hbmk_zyc1gi.dir\UDFS.c'...
IO.PRG(815) Error E0030 Syntax error "syntax error at '.'"
1 error


Build.bat consists of

hbmk2 IO.HBP -lhbct

The includes in both versions are

Code: Select all

#INCLUDE "i_pseudofunc.CH"
#include "FILEIO.CH"
#INCLUDE "COMMON.CH"
#INCLUDE "directry.ch"
#Include "hbinkey.ch"
#Include "inkey.ch"
#INCLUDE "hbgtinfo.ch"
#include "inkey.ch"
#include "set.ch"
If I try to include the MiniGui.ch file, it returns an error about missing ReleaseAllWindows. This happens only in the MingW distribution, not the Borland one.
User avatar
mol
Posts: 3727
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Compile error in Mingw distribution, but not Borland

Post by mol »

I'm using System.Clipboard phrase in my HMG applications without any problems. They are compiled with MinGW
HGAutomator
Posts: 195
Joined: Thu Jul 16, 2020 5:42 pm
DBs Used: DBF

Re: Compile error in Mingw distribution, but not Borland

Post by HGAutomator »

It's related to my mixed environment set up for both Borland and MingW. It's always been a hassle for me.
mol wrote: Sat May 11, 2024 5:12 pm I'm using System.Clipboard phrase in my HMG applications without any problems. They are compiled with MinGW
Post Reply