Compile Error / Linker Error

BlitzMax Forums/BlitzMax Programming/Compile Error / Linker Error

Will(Posted 2006) [#1]
Compile Error: Unable to open file '.bmx/SegmentInfo.bmx.debug.macos.x86.i'
[/Double Uranium Son/1) Territories/Code/Segment.bmx;5;1]
Build Error: failed to compile /Double Uranium Son/1) Territories/Code/Segment.bmx


This is caused by adding the line: "Import "SegmentInfo.bmx"" to the start of one of my files. What does it mean, and how can I get around it? Many other imports do work. Another does not:


Compile Error: Unable to open file '.bmx/Socket.bmx.debug.macos.x86.i'
[/Double Uranium Son/1) Territories/Code/Segment.bmx;5;1]
Build Error: failed to compile /Double Uranium Son/1) Territories/Code/Segment.bmx


I think these may be imported by other files that were imported, but should that cause a problem?


Dreamora(Posted 2006) [#2]
Are you sure that there is a file Segment.bmx (which seems to be imported by SegmentInfo.bmx)?

If so, did you try to disable quickbuild just in case you did, by error, compile segment.bmx once on its own?( because if a bmx is compiled on its own, the generated object files won't work for import into anything else, thus quick build must be disabled to rebuild them for linking)


Will(Posted 2006) [#3]
Quickbuild is off. The imports are from file Segment.bmx importing file SegmentInfo.bmx and Socket.bmx. Some other imports do work, like Tag.bmx.

here is the import structure so far:

GameData.bmx imports:
_____GraphicPile.bmx (imports nothing)
_____SoundPile.bmx (imports nothing)
_____SegmentInfo.bmx imports:
__________Tag.bmx (imports nothing)
__________Socket.bmx imports:
_______________Segment.bmx imports:
____________________Tag.bmx (imports nothing)
____________________SegmentInfo.bmx <-- Fails.

the "_____" are just to show the hierarchy of files / imports I traced.