Hi Kevin,

your little example works fine for me on Ubuntu Hardy with sdcc 2.9.0.
It compiles flawlessly, except that you have not specified a
processor, so I ignore what kind of chip it is compiling the code for.

So I think you have two ways: switching to GNU/Linux for this task
(you're free to do so), or ask someone who also has your OS, since I
can't test your application on it.

Maybe others can do so.

Good luck.

On Sun, May 3, 2009 at 1:46 AM, Kevin Zee <psy...@hughes.net> wrote:
> I feel like an idiot... I installed SDCC via the windows EXE installer
> today and I am going through the manual (which seems for an older
> version, btw). it says to first make sure that sdcc can be found by
> using the --version argument. That works fine. But, the next step is to
> try to make it compile something by typing in a small program that is :
>
> char test;
> void main(void) {
> test=0;
> }
>
> I did that and saved it as test.c and typed "sdcc -c test.c" without
> quotes, of coarse. Then windows complained that sdcpp has encountered a
> problem yada yada yada. Then, in my command window, the compiler
> complained that it couldn't compile an empty file.
>
> I have tried searching for a solution to this but my searches proved
> fruitless. Any idea what I am doing wrong? Is the test program getting
> optimized away?
>
> Thanks,
> Kevin
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>



-- 
Ricardo L. Febrero

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to