I am compiling using a .bat file which has the following content.
WinMain has a .bi file which includes the other basic modules.Path C:\FBDos;
Cd\FBDos\Projects\Mc226
FBCDos -g -w pedantic -s console WinMain.bas -p c:\FBDos\Lib\Dos -v -l cgui204 -l alleg -x FrontEnd.exe
When I try to debug the message window has the following.#Include once "allegro.bi"
#Include once "cgui.bi"
#include Once "vbcompat.bi"
#Include once "Types.bi"
#Include once "declares.bi"
#Include once "Adam.bi"
#Include once "Presets.bi"
#Include Once "Win01.bas"
#Include Once "Win02.bas"
#Include Once "WinHelp.bas"
#Include Once "RunMod00.bas"
#Include Once "RunMod01.bas"
#Include Once "RunMod02.bas"
#LibPath "C:\HMI"
Is there a problem with the -g option in Dos ?C:\FBDos\Projects\MC226>FBCDos -g -w pedantic -s console WinMain.bas -p c:\FBDos\Lib\Dos -v -l cgui204 -l alleg -x FrontEnd.exe
FreeBASIC Compiler - Version 0.90.1 (07-17-2013) for dos
Copyright (C) 2004-2013 The FreeBASIC development team.
standalone
compiling: WinMain.bas -o WinMain.asm (main module)
assembling: C:\fbdos\bin\dos\as.exe --32 "WinMain.asm" -o "WinMain.o"
ld options in 'temp.res': -o "FrontEnd.exe" -T "C:\fbdos\lib\dos\i386go32.x" -L "c:\FBDos\Lib\Dos" -L "C:\HMI" -L "C:\fbdos\lib\dos" -L "." "C:\fbdos\lib\dos\crt0.o" "C:\fbdos\lib\dos\fbrt0.o" "WinMain.o" "-(" -lcgui204 -lalleg -lfb -lgcc -lc -lm -lsupcx "-)"
linking: C:\fbdos\bin\dos\ld.exe @temp.res
Make done
Debugging: C:\FBDos\Projects\MC226\FrontEnd.exe
No debug info found. Compile with the -g option.
When I compile for windows it works perfectly.
Regards
EDIT: With the -g option the exe is 2,100kb , without it is 1,500kb. Yet no debug information found ???