Tested with the latest svn.

The following works:

env sdcc --verbose -mpic16 -p18f2450 \
  -I/usr/local/share/sdcc/include \
  -L/usr/share/sdcc/lib/pic16 ctest2450.c

The following does not work:

env SDCC_INCLUDE=/usr/local/share/sdcc/include sdcc \
  --verbose -mpic16 -p18f2450 \
  -L/usr/share/sdcc/lib/pic16 ctest2450.c

This is the error:

Processor: 18f2450
sdcc: Calling preprocessor...
ctest2450.c:3:30: error: pic16/pic18f2450.h: No such file or directory
sdcc: Generating code...
(snip)

So, the odd thing is that the files are in their default locations, so I
shouldn't even have to specify a separate -I.  Ignoring that, the
environment variables aren't working either.  Am I missing something
obvious?

While I'm here, there's some other probably unrelated issue behind why I
have to supply the -L argument as well.  If I don't specify, I get this:

Processor: 18f2450
sdcc: Calling preprocessor...
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: Calling linker...
crt0i.o: No such file or directory

I just happen to have crt0i.o on my system because of the version that
came with my distro (Gutsy).  There seem to be source files for it in
the svn trunk, but it doesn't build by default.  What do I need to pass
to configure to get that to build?

Thanks
PSM

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to