include files with same name not ignored

General FreeBASIC programming questions.
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: include files with same name not ignored

Post by dodicat »

If your fbc.exe is not on path, and you are compiling fbfrog via an ide.
You could try this:
create an empty file called nil.bas say, and save it in the source folder.(along with all the other files)
Then set your ide settings to
*.bas -m fbfrog
and compile nil.bas.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: include files with same name not ignored

Post by MrSwiss »

Hi dodicat, I'm compiling from console (aka: no IDE) with:
- current dir = ../FBFrog/src/
- FBC = fully qualified (not relative) path, to the compiler ...
(as written in a earlier post)
C:\DEV_TOOLS\FreeBASIC\source\FBFrog\src>c:\dev_tools\freebasic\1071_64\fbc *.bas -m FbFrog
It fails on: __FB_ARGC__ which I'm using successfully, in other programs.
That is, what makes it so difficult to understand, what's going on ...
srvaldez
Posts: 3379
Joined: Sep 25, 2005 21:54

Re: include files with same name not ignored

Post by srvaldez »

Mr dodicat
you come up with novel solutions, how did you arrive at this?
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: include files with same name not ignored

Post by dkl »

MrSwiss wrote:C:\DEV_TOOLS\FreeBASIC\source\FBFrog\src>c:\dev_tools\freebasic\1071_64\fbc *.bas -m FbFrog
It fails on: __FB_ARGC__
Maybe it works with -m fbfrog instead of -m FbFrog, unfortunately it seems that the -m option is case-sensitive (it needs to match the file name fbfrog.bas).
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: include files with same name not ignored

Post by dodicat »

Mr swiss
OK, I get the same errors if I compile the fbfrog.bas file with options *.bas -m fbfrog.(with my command line tool)
Try compiling an empty file nil.bas with the options.

srvaldez
I never have fbc.exe on path, an ide needs a file to compile, I have done this before when compiling .bas source and it works OK.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: include files with same name not ignored

Post by MrSwiss »

@dkl,
you where "spot on" with the -m 'name' (case matching), it's all OK now!
Thanks a lot to all, that provided input on this issue!
(Yet again: a tiny little detail, makes all the difference!)
Post Reply