Results 1 to 9 of 9

Thread: c compiler question olegs firmware

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    c compiler question olegs firmware

    Hi,

    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,

    zwieback

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

  3. #3
    al37919,

    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
    Location
    Moscow, Russia
    Posts
    3,805
    I don't think I understand your question. To compile typical program you have to execute:
    PHP Code:
    ./configure
    make
    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
    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

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
  •