#80 SDCC installed but can't run

closed
nobody
None
5
2011-04-20
2011-04-19
Chris
No

I've downloaded version 3.0.0 of the SDCC and installed it on my windows laptop.
The result is an SDCC folder with an uninstall program, a logo, two text files and five further folders,
but nothing to run. I've checked in the bin, doc, include, lib and non-free lib folders, but there is no application file to be found.
How do I get SDCC to run?

Thanks

Chris

Discussion

  • Maarten Brock
    Maarten Brock
    2011-04-19

    • status: open --> pending
     
  • Maarten Brock
    Maarten Brock
    2011-04-19

    The bin directory should contain several command-line executables including sdcc.exe.

    Open a command line prompt (Start -> All Programs -> Accessories -> Command Prompt) and type 'sdcc -v' and press enter. If you accepted the defaults in the installer it should have added sdcc to your path and you should see SDCC telling its version.

     
  • Chris
    Chris
    2011-04-20

    • status: pending --> open
     
  • Chris
    Chris
    2011-04-20

    Many thanks. I now have a command prompt window (white text on black background), and can get what appear to be sensible responses. However, the example C code I have is incomplete as include files are missing, so I get a list of errors. I tried to complie a program that complied ok using MikroC, but just got a list of errors. If anyone has gone through this learning curve, please advise next step. I'll keep trying and hopfully get the SDCC to work for me.

     
  • Maarten Brock
    Maarten Brock
    2011-04-20

    • status: open --> pending
     
  • Maarten Brock
    Maarten Brock
    2011-04-20

    Nobody can help you with your example C code except your supplier unless you tell exactly what you have and what goes wrong.

     
  • Chris
    Chris
    2011-04-20

    I guess it is more of a general comment about code being specific to a complier and how to migrate from one complier to another. Although in theory C code that compiles on on compiler should compile on another?

     
  • Chris
    Chris
    2011-04-20

    • status: pending --> open
     
  • achdawai
    achdawai
    2011-04-20

    No, fully portable C code should compile on all compilers. But embedded C compilers have different language extensions to provide support for the embedded world.

    You need to port your core to sdcc, or isolate the compiler dependent parts in a #ifdef or separate source file.

     
  • achdawai
    achdawai
    2011-04-20

    (typos: I meant only fully portable C code compiles everywhere, but typical embedded C code is not portable - and you need to port your *code* to sdcc)

     
  • Maarten Brock
    Maarten Brock
    2011-04-20

    • status: open --> closed