FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error compiling with Harbour from CVS
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Error compiling with Harbour from CVS
Posted: Mon Nov 13, 2006 08:49 PM
This is what I get compiling any PRG:

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 2.8 - October 2006 Harbour development power │
│ (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP │
└────────────────────────────────────────────────────────────────────────────┘

Compiling...
Harbour Compiler Alpha build 46.2 (Flex)
Copyright 1999-2006, http://www.harbour-project.org/
Compiling 'foldertest.prg' and generating preprocessed output to 'foldertest.ppo'...
Lines 32, Functions/Procedures 1
Generating C source output to 'foldertest.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
foldertest.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'WinMain' referenced from C:\BCC55\LIB\C0W32.OBJ
* There are errors


Do I have to build Harbour with any special flag?

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Error compiling with Harbour from CVS
Posted: Tue Nov 14, 2006 12:34 AM

Enrico,

yes, use -DHARBOUR_MAIN_WIN

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Error compiling with Harbour from CVS
Posted: Tue Nov 14, 2006 08:18 AM
Using

SET CFLAGS=-DHARBOUR_MAIN_WIN


I get

obj\b32\hbrun.c:
obj\b32\external.c:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_main' referenced from C:\BCC55\LIB\C0X32.OBJ

** error 1 ** deleting bin\b32\hbrun.exe


EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Error compiling with Harbour from CVS
Posted: Tue Nov 14, 2006 09:35 AM

Enrico,

Yes, we get it too, the hbrun make file should be modified.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Error compiling with Harbour from CVS
Posted: Tue Nov 14, 2006 12:50 PM

Can you fix the problem or report it to the Harbour developers list?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Error compiling with Harbour from CVS
Posted: Tue Nov 14, 2006 12:53 PM

Enrico,

We are going to revert that change, that I wrongly introduced for building with MSVC, as its already solved.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Error compiling with Harbour from CVS
Posted: Tue Nov 14, 2006 12:58 PM

Yes, I just read it in the developers list.

Thank you.

EMG

Continue the discussion