Compile error in visual c++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • uday

    #1

    Compile error in visual c++

    Hi,

    I am new to visual c++ and I am trying to compile a Decoder project
    with library in it. I tried to create a win32 console application and
    tried to add a compiled static library to it. I ended up with the
    following error message "Errpr executing c1.exe" as follows.


    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(504 ) : error
    C2224: left of '.name' must have struct/union type
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(504 ) : warning

    C4047: 'function' : 'const char *' differs in levels of indirection
    from 'const unsigned int '
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(504 ) : warning

    C4024: 'strncpy' : different types for formal and actual parameter 2
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(504 ) : error
    C2198: 'strncpy' : too few actual parameters
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(505 ) : error
    C2224: left of '.name' must have struct/union type
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(508 ) : error
    C2224: left of '.name' must have struct/union type
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(508 ) : error
    C2198: 'fopen' : too few actual parameters
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(510 ) : error
    C2224: left of '.name' must have struct/union type
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(514 ) : error
    C2224: left of '.name' must have struct/union type
    c:\documents and
    settings\uday\d esktop\decode\s rc\decode\decod e_threads.c(514 ) : error
    C2198: '_splitpath' : too few actual parameters
    ERRMSG.C
    output.c
    parse.c
    Error executing cl.exe.


    I hope there is some change in the settings that I need to make. Please

    help me out as a I am new to visual c++ .


    Thanks in advance.


    uday

  • Gavin Deane

    #2
    Re: Compile error in visual c++


    uday wrote:
    Hi,
    >
    I am new to visual c++ and I am trying to compile a Decoder project
    with library in it. I tried to create a win32 console application and
    tried to add a compiled static library to it. I ended up with the
    following error message "Errpr executing c1.exe" as follows.
    <snip list of error messages but no code>

    This FAQ



    tells you how to post questions about code that doesn't work. You got
    point 7 - the compiler messages - which is important, but without the
    code that produced the messages it is impossible to know what the
    problem is. Read the guidelines in the FAQ and post a *minmal*
    *complete* code example and you should get lots of help.

    Gavin Dean

    Comment

    Working...