CrazyEngineers
  • Urgent help in c language

    shiny mind

    Member

    Updated: Oct 25, 2024
    Views: 1.5K
    1-what is the best compiler used with eclipse c\c++ i used mingw but not ok (Can't find a source file at "../mingw/crt1.c"
    Locate the file or edit the source lookup path to include its location)& used gcc make problem with my hard so what is the best can any one here help me ?

    2‎-what does that mean
    int main(int argc, char **argv)?


    &&& thank you
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Pensu

    MemberApr 15, 2012

    Eclipse is complex IDE, you can try codeblocks for C programming. Much better than eclipse. It comes with integrated minGW compiler.

    shiny mind
    int main(int argc, char **argv)
    This notation is used to take argument from command line. argc stores the number of arguments and argv holds the pointers to variables.
    Are you sure? This action cannot be undone.
    Cancel
  • lovejeet

    MemberApr 17, 2012

    shiny mind
    1-what is the best compiler used with eclipse c\c++ i used mingw but not ok (Can't find a source file at "../mingw/crt1.c"
    Locate the file or edit the source lookup path to include its location)& used gcc make problem with my hard so what is the best can any one here help me ?

    2‎-what does that mean
    int main(int argc, char **argv)?


    &&& thank you
    **argv means that it is a pointer to the pointer to the variable argv.
    in simple terms,
    let x=*y.
    that means x stores the value of pointer to y.
    then p=*x
    so p stores the value of pointer to x.
    therefore, p=**y.
    Are you sure? This action cannot be undone.
    Cancel
  • ysr shk

    MemberApr 23, 2012

    2‎-what does that mean
    int main(int argc, char **argv)?
    Here, argc is used to store argument count.That will be helpful to retrive the count of variables passed from command line.
    And **argv ,generally stands for Argument Vector. It uses ** because it's not a single string,it's a string array.This will help you to directly call that string in program. If there is an * it equals to char c[],and ** is equals to char c[][].
    Are you sure? This action cannot be undone.
    Cancel
  • Vignesh Raghav

    MemberApr 26, 2012

    The CodeBlock10 does not comes with an integrated compiler . I installed GCC compiler so was working perfect ! I faced this issue . Some one can shed some torchlight on it . I might be wrong (always use to be 👎 )!!!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register