Menu

Build Error

Ashwin
2011-05-02
2012-09-26
  • Ashwin

    Ashwin - 2011-05-02

    Hi All

    I am trying to compile a program for smart card communication. I am getting
    build error. The following is the compiler log.

    Executing make...
    make.exe -f
    "C:\Users\Ashwin\Desktop\Smartcards\Codes\WinCardProject\Makefile.win" all
    g++.exe -c main.cpp -o main.o -I"lib/gcc/mingw32/3.4.2/include"
    -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32"
    -I"include/c++/3.4.2" -I"include"

    /usr/bin/sh: /c/Cplus/Dev-Cpp/Bin/g++.exe: Invalid argument
    make.exe: *** Error 126

    Execution terminated

    Please help me solve this problem. Thanks
    Ashwin

     
  • DARC

    DARC - 2011-06-14

    I don't know about using Make, but in the compiler directives doesn't -o mean
    output file name. If -o is where you name your executable shouldn't the
    extension be .exe, .com, or .sys. The compiler will name it for you if you
    omit the -o directive. The .o extension is one of the pre-link file types, so
    it may not let you name the exe (binary) file that way.

    If this is the name of one of the pre-linking files, what are you doing
    "Making" it. It not ready to make, it needs to be an exe (binary) file.

     

Log in to post a comment.