Results 1 to 9 of 9

Thread: c compiler question olegs firmware

  1. #1

    c compiler question olegs firmware


    sorry for asking this implicitness but i want to know if there is a possibility to compile a c sourcefile like with gcc -o ... on olegs fimware.

    I've checked ipkg list and installed for a kind of gcc pkg but i'am not sure enough with this stuff...

    thanks in advance and kind regards,


  2. #2
    Join Date
    Feb 2007
    Moscow, Russia
    for the on-router compilation install optware-devel package. It's a meta-package which includes the most of needed things.

  3. #3

    I've installed the optware but i didn't find the correct compiler. Could you specify me the correct compiler pls ?

  4. #4
    Join Date
    Feb 2007
    Moscow, Russia
    I don't think I understand your question. To compile typical program you have to execute:
    PHP Code:
    make install 
    More details usually can be found in the documentation to the sources. All the stuff needed to perform this is installed by the optware-devel package. It is better if you clarify what do you mean under "correct compiler".

  5. #5
    sorry, thats my mistake.

    i want to compile the following like that:

    ----- newfile.c-----
    #include <stdio.h>

    void main()

    printf("hello world!\n");

    i want to get an executable file. I've done it with gcc on our SUN machines, but i haven't found something adequate on the wlhdd with olegs firmware.
    I've looked at make but i think this wouldn't be ok for this.

    But i believe there has to be something for this...

    best regards
    Last edited by zwieback; 26-01-2009 at 14:59.

  6. #6
    Join Date
    Feb 2007
    Moscow, Russia
    PHP Code:
    root@wl500g,~> gcc 1.c
    In function ‘main’:
    1.c:5warning: return type of ‘main’ is not ‘int’
    @wl500g,~> ./a.out
    hello world
    so, you see --- it is possible

  7. #7
    did you have oleg or open/dd-wrt installed on your wl500 ?

    when I do gcc --help i got ambigious command as a reply. So for my understanding my wl-hdd didn't know gcc ?!

    I think that I dont't have to reboot after installing the dev-package...

  8. #8
    Join Date
    Feb 2007
    Moscow, Russia
    I have wl500gp with oleg's fw. wl-hdd shouldn't make any difference. Check if you have buildroot package installed. It should have been installed as a part of optware-devel.

    Reboot shouldn't be needed. Check with:
    PHP Code:
    type gcc 
    that gcc is installed and is available through PATH variable.

  9. #9
    thats it. buildroot pkg was missing. I've installed it and now gcc is known in the system path as well.

    Thank you very much for your help.

Similar Threads

  1. How-to: Recompile Oleg's firmware
    By moszinet in forum WL-500gP Tutorials
    Replies: 0
    Last Post: 08-08-2008, 19:48
  2. libmcrypt on Oleg's firmware ?
    By simistef in forum WL-500gP Q&A
    Replies: 0
    Last Post: 14-03-2008, 10:31
  3. Flashing Oleg's Firmware in WL HDD
    By hugo in forum WL-HDD Custom Development
    Replies: 29
    Last Post: 21-10-2004, 14:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts