User Profile

Collapse

Profile Sidebar

Collapse
singhPrabhat
singhPrabhat
Last Activity: Oct 20 '08, 01:00 PM
Joined: Aug 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How can I create executable for Windows from Linux ?

    Hi,

    I am using 64-bit linux box (Open Suse 10.3 ). I want to create executable for windows box.

    how can I use Makefile to create executable for windows?

    I can see some .dll files which I seem required at time of linking

    libeay32.dll
    msvcr71.dll
    ssleay32.dll
    See more | Go to post

  • singhPrabhat
    replied to Cross Compilation
    in C
    my target machine is having gcc3.2.2 and my local machine is gcc4.2.1. Do I need to install gcc3.2.2 on my local box?

    how can I find option (-b) for the target machine?

    CCWebBrowser: $(OBJs)

    $(GCC) -m32 -o CCWebBrowser.li nux $(OBJs) $(LSSLLIBs) $(LICULIBs)

    If I give target as above then it creates executable but for 64-bit....
    See more | Go to post

    Leave a comment:


  • singhPrabhat
    replied to Cross Compilation
    in C
    make executable on 32-bit from 64-bit machine



    -b machine how can I find the value for machine?

    how can I configure cross compiler? As in the link given by you tell about
    For example, if a cross-compiler was configured with `configure arm-elf', meaning to compile for an arm processor with elf binaries, then you would specify -b arm-elf to run that cross compiler

    I want to make executable...
    See more | Go to post

    Leave a comment:


  • singhPrabhat
    started a topic Cross Compilation
    in C

    Cross Compilation

    Hi Everyone,

    I want to make executable for 32-bit machine by using Makefile on 64-bit machine.
    Currently I am having gcc4.2.1 on my box.


    Thanks.
    See more | Go to post

  • make: *** No rule to make target `CCWebConfigura tion.c', needed by `CCWebConfigura tion.o'. Stop.
    See more | Go to post

    Leave a comment:


  • singhPrabhat
    started a topic Makefile and source files in different directory
    in C

    Makefile and source files in different directory

    I want to compile source files which is in different directory than Makefile.
    How can I do this?

    GCC=gcc
    DEFs=-DCUSTOMERCENTRA L_V11 -DUNIX -DLINUX -DOPENSSL -D_REENTRANT

    CCWebConfigurat ion.o: CCWebConfigurat ion.c

    $(GCC) -c -O2 $(DEFs) $*.c

    I get following error:

    make: *** No rule to make target `CCWebConfigura tion.c', needed by `CCWebConfigura tion.o'. Stop.
    See more | Go to post

  • singhPrabhat
    started a topic Linking Problem
    in C

    Linking Problem

    I have installed ICU 4.0 on my box. Whenever I try to make the executable of my source by using "make target_name" then I get following error.

    it seems that at linking time it is unable to search for the libraries required.

    gcc -o CustomerC.linux CCWebConfigurat ion.o CCWebLog.o CCWebSession.o CCWebRequest.o CCWebCookie.o CCWebURL.o CCWebPage.o CCWebSSL.o CCWebUniCode.o CCWebUtils.o CCPortal.o CCWebBrowser.o...
    See more | Go to post

  • singhPrabhat
    started a topic Error Log while compilation
    in C

    Error Log while compilation

    I have some .c and .h files in my directory. My aim is to compile the whole file. I am compiling each and every .c file by
    gcc -c file_name then I use gcc -o some_text file_name.

    I have found out that some file starts with #ifdef UNIX. But UNIX is nowhere defined in either header file(.h file) it includes not in the file itself.

    For the time being I am defining as #include UNIX in the file whereever required....
    See more | Go to post

  • I am unable to figure out typo mistake can u please suggest ......
    See more | Go to post

    Leave a comment:


  • gcc -c file_name.c

    Please suggest some useful ways.
    See more | Go to post

    Leave a comment:


  • after adding <string.h> I am now not getting any warning regarding strlen,strcpy etc. but I still facing following error

    CCWebBrowser.c: 135: error: ‘CUSTOMERCENTRA L_HEADER_TEXT’ undeclared (first use in this function)
    CCWebBrowser.c: 135: error: (Each undeclared identifier is reported only once
    CCWebBrowser.c: 135: error: for each function it appears in.)
    CCWebBrowser.c: 312: error: ‘iDumpLevel’ undeclared
    ...
    See more | Go to post

    Leave a comment:


  • error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’

    Hi,
    I am using gcc (GCC) 4.2.1 (SUSE Linux).
    SUSE 10.3

    While compiling a .c file I get following error ::::



    CCWebConfigurat ion.h:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘extern’
    CCWebBrowser.c: In function ‘main’:
    CCWebBrowser.c: 134: error: ‘CUSTOMERCENTRA L_HEADER_TEXT’ undeclared (first use in this function)
    ...
    See more | Go to post
No activity results to display
Show More
Working...