User Profile

Collapse

Profile Sidebar

Collapse
srikar
srikar
Last Activity: Apr 4 '07, 03:29 AM
Joined: Sep 5 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • usr/bin/ld: warning: i386 architecture of input file is incompatible with i386:x86-6

    Hi all,

    I am having a problem, when I am compiling the code in 32 bit option on a
    64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from
    the linker .

    /`../bin/amd64_stat_gnu_ 02015/WriteFault.o' is incompatible with i386:x86-64 output
    /usr/bin/ld: warning: i386 architecture of input file `../bin/amd64_stat_gnu_ 02015/WriteLogic.o' is incompatible with i386:x86-64 output...
    See more | Go to post

  • srikar
    started a topic hp C++ library functions attach() & dettach()
    in C

    hp C++ library functions attach() & dettach()

    Hi all,
    I am having code in hp700 machine, which was using hp C++ library.

    I am having two functions attach() & dettach(), which are used to attach the
    file stream to the file.
    How to implent the code for detach function.
    I.e to remove the stream of Input from file stream.
    Thanks & regards
    N. CHAITANYA SRIKAR
    See more | Go to post

  • srikar
    started a topic Header file libc.h
    in C

    Header file libc.h

    Hi all,

    I am not able to include the header files libc.h
    & glibc.h , When I include these headers I am gettting errors that
    no such file or directory.

    kindly help me to resolve my problem

    Thanks & Regards

    SRIKAR
    See more | Go to post

  • srikar
    started a topic sub: inclusion of header file "y_token_names.h"
    in C

    sub: inclusion of header file "y_token_names.h"

    Hi all,
    I am working on porting of code in C++, I am having the following problem.

    In my code The following structure has been defined

    static struct rwtable { /* reserved word table */
    char * rw_name; /* representation */
    int rw_yylex; /* yylex() value */
    } rwtable[] = { /* sorted */
    # include "y_token_names. h"...
    See more | Go to post

  • Hai some one help me to resolve my query, I hope Banfa will help me
    regards
    srikar...
    See more | Go to post

    Leave a comment:


  • srikar
    replied to When I declare the following structure in my code
    in C
    Hai Banfa Thank you very much, I am getting no warnings
    after I make the change.
    I spent lot of time on it.
    thank u very much
    regards
    srikar...
    See more | Go to post

    Leave a comment:


  • srikar
    started a topic When I declare the following structure in my code
    in C

    When I declare the following structure in my code

    Hi all

    When I declare the following structure in my code
    static struct rwtable{ /* reserved word table */
    char *rw_name; /* representation */
    int rw_yylex; /* yylex() value */
    }rwtable[] = {" ",0};

    I am getting the warning that aggregate has a partly braketted initialiser
    help me to resolve this warning....
    See more | Go to post

  • for strstream class what is the need for setting the flags

    Hi all,
    For the class strstream let the object be line.
    On an 16 bit machine previously of ANSI standard
    ststream line
    line.setf(ios:: in);
    What is need for setting the flag to input.
    Is that at that time for the class strstream , we want to use stratream object
    to input do we need to set using this type of flags
    or there is any other use for it.

    Kindly help...
    See more | Go to post

  • srikar
    replied to type casting with void*
    in C
    To store the value in hex format
    For an int variable if I type cast to (void*) and store it in other variable
    If I output this variable it will be in hex format.
    For e,g for 10 it will be 0Xa
    How to store the variable in that format, so that If I output the
    variable I should get output in hex format.

    Thanks & Regards
    srikar...
    See more | Go to post

    Leave a comment:


  • srikar
    started a topic type casting with void*
    in C

    type casting with void*

    Hi all,

    When I type cast an int value with (void*) I am able to get the value
    represented in hex format.
    But in 64 bit I cant convert int value in to (void*) to obtain the value in hex format
    Is there any method which can help me

    Regards
    srikar
    See more | Go to post

  • srikar
    replied to Getting the address of an enum constant
    in C
    Thank you very much arne, lot of my queries have been solved by ur
    explanation
    If I have any further can I directly post to you.

    Thanks & Regards
    srikar...
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    thanks arne once again.
    I just want to make things clearer.
    So the enum state{...} i.e waiting, stopped, etc for them they are
    enum constants so for them we cant find the address.
    1.If I initilise that variable in main I am getting error
    i.e invalid conversion from int to states.
    as we can see below.

    enum states{ waiting=21, running, stopped, cancelled };
    int main( void )
    {...
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    Thank you arne for the immediate reply.
    I am getting the correct value for *b_ptr.
    But If I try to get the address of waiting I am getting error that non lvalue in unary &.
    If I declare the variable again in main like below. I am getting address,
    But If I dereferece this address I am not getting the correct value.
    I am getting garbage values.


    using namespace std;
    #include<iostre am>...
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    Thank you arne & banfa for ur explanations.
    Still I am having some questions in mind
    When i declare the variable by using enum key word along with the varibale
    I am able to get the address of the variable, but when i derefernce this address i.e by using pointer "*" to access the value of enum I am not getting the right values. I am getting some garbage values.

    Is it that both are different i.e when...
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    getting the address of a enum constant

    hi all,
    how to get the address of an enum constant.
    Can we make type casting of enum constant to (void*) on 32 bit machine where
    both enum and address are of same size.
    please help me
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    Hi thanks once again.

    Can we type cast a enum value with (void*) inorder to get the adress on
    a 32 bit machine. Is it possible.

    regards
    srikar
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    Thanks for the information given
    So enum values cannot be assigned to pointer variables.
    Can we make casting for enum variables to data types other than int.
    regards
    srikar...
    See more | Go to post

    Leave a comment:


  • srikar
    replied to Getting the address of an enum constant
    in C
    Thanks for the fast reply,
    Its working with int format
    what about the enum, is it that enum constats cant be stored in pointers

    regards
    srikar...
    See more | Go to post

    Leave a comment:


  • srikar
    started a topic Is it a valid conversion?
    in C

    Is it a valid conversion?

    Hi all
    On a 64 bit machine where int occupies 32 bits and pointer occuping 64 bits.
    Is it possible to type cast between an enum value with pointer to enum
    i.e (enum*)
    will compiler wont report this errors?
    Is it a valid conversion?
    regards

    srikar
    See more | Go to post

  • srikar
    replied to liberary file
    in C
    is it a liberary file or library file:)...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...