--- "Peter S. May" <[EMAIL PROTECTED]> escribió:

> 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
> 


I know that this can sound odd, and I have not tested it, but I suggest this to 
you because
I had a problem with the linker script file.

When using SDCC_INCLUDE, specify full win32 paths (ex c:\cygwin\usr\local...) 
instead of POSIX
paths.

The linker script did not support POSIX paths, so I had to change the manner of 
generating my
linker script.

Good Luck.


       
______________________________________________ 
¿Chef por primera vez?
Sé un mejor Cocinillas. 
http://es.answers.yahoo.com/info/welcome

-------------------------------------------------------------------------
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