Compiler / Linker directives ...
Posted: Fri Dec 31, 2010 3:32 pm
Hello everyone and Happy New Year !
As some of you know,, I'm brand new.. Just yesterday I installed HMG 3035 ,,,
I like the IDE,,, It's going to be fun..
At this time,, I've tried to compile "Console" of some older and simple clipper applications...
For fun,, I did use the IDE to build with,,, I changed the settings to Console = .t. ,,, etc ...
I loaded in my program files to a project,, etc ... Created a "Function Main" in the parent program etc ...
I never get an executable ,,,,
I get a lot of errors like Multiple definition of "every program file name in the project".
Then errors like First Defined Here "every program file name in the project" .
I keep getting those two errors ... over and over in a long list until the file names run out...
On the program I'm trying to compile,, It's old and simple ... Very 87 ish ...
It does have a procedure file with both procedures and functions .... (utilities,, file opening routines,, Tbrowse, etc.)
Is there a list somewhere of compiler and linker error codes,, switches,, directives,, explanations ?
Thanks,, and be patient with me please,, if I ever get going I'll have a lot to offer back ...
As some of you know,, I'm brand new.. Just yesterday I installed HMG 3035 ,,,
I like the IDE,,, It's going to be fun..
At this time,, I've tried to compile "Console" of some older and simple clipper applications...
For fun,, I did use the IDE to build with,,, I changed the settings to Console = .t. ,,, etc ...
I loaded in my program files to a project,, etc ... Created a "Function Main" in the parent program etc ...
I never get an executable ,,,,
I get a lot of errors like Multiple definition of "every program file name in the project".
Then errors like First Defined Here "every program file name in the project" .
I keep getting those two errors ... over and over in a long list until the file names run out...
On the program I'm trying to compile,, It's old and simple ... Very 87 ish ...
It does have a procedure file with both procedures and functions .... (utilities,, file opening routines,, Tbrowse, etc.)
Is there a list somewhere of compiler and linker error codes,, switches,, directives,, explanations ?
Thanks,, and be patient with me please,, if I ever get going I'll have a lot to offer back ...
Code: Select all
// file name loto.prg
function Main
store 0 to pexit
do while .t.
clos data
if pexit <> 0
exit
endif
*clear memory
set procedure to lotoidex //Procedure file
do setsys // setup directories and paths
set century on
if date()+365 > ctod("01/01/2000")
set epoch to 1990
endif
if date()+365 > ctod("01/01/2100")
set epoch to 2090
endif
if date()+365 > ctod("01/01/2200")
set epoch to 2190
endif
store 0 to pexit
mPassUser := " "
* mPassUser := getpass("CHESS","m:","sox")
if mPassUser = "NO"
mac_err("System will shut down") // function in procedure file
pexit := 2
exit
endif
* do cmsck
* if pexit = 10
* mac_err("Records Coming In.. Retry Later..")
* exit
* endif
* if pexit = 9
* mac_err(qdrive+"\"+qdir+" Invalid! Retry.")
* exit
* endif
do paint // screen clean and colors
store 0 to pstable
store 0 to pmenu
store 0 to pexit
do bar // drop down menu
* The "bar"menu works simple.
* if mchoice = 1
* do prog1
*endif
* if mchoice = 2
* do prog2
*endif
enddo
clos data
setcolor("w/")
clear
return