Results 1 to 9 of 9

Thread: c compiler question olegs firmware

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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.

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

  3. #3
    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...

  4. #4
    Join Date
    Feb 2007
    Location
    Moscow, Russia
    Posts
    3,805
    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.

  5. #5
    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
  •