how to change the .mke file?

hello,i created a project using the appwizard,native code.

and i add a new class named NamedPipeincluded in NamedPipe.h and NamedPipe.cpp.The class has some functions.

where should i change that i can use ClassA's function?

dlmObjs = \
$(o)$(appName)$(oext) \
$(o)NamedPipe$(oext)

$(o)NamedPipe$(oext)   (baseDir)NamedPipe.cpp
                                      \$(baseDir)NamedPipe.h

i did as above,but when i compiled ,there is an error,missing dependency......namedpipe.obj???

 

why?????

Parents
  • dujimache said:
    $(o)NamedPipe$(oext) (baseDir)NamedPipe.cpp \$(baseDir)NamedPipe.h

    The above make file statement is incorrect. The backslash (\) is a continuation character and should only ever appear at the end of a line. The colon (:) invokes the make rule for a given file extension, but you don't have a colon in your statement. Look in the delivered MDL examples for make files (*.mke) that build correctly.

    Your compile statement should look something like this …

    $(o)NamedPipe$(oext)   : (baseDir)NamedPipe.cpp  $(baseDir)NamedPipe.h

    or (with continuation character)

    $(o)NamedPipe$(oext)   : (baseDir)NamedPipe.cpp  \
                              $(baseDir)NamedPipe.h

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • dujimache said:
    $(o)NamedPipe$(oext) (baseDir)NamedPipe.cpp \$(baseDir)NamedPipe.h

    The above make file statement is incorrect. The backslash (\) is a continuation character and should only ever appear at the end of a line. The colon (:) invokes the make rule for a given file extension, but you don't have a colon in your statement. Look in the delivered MDL examples for make files (*.mke) that build correctly.

    Your compile statement should look something like this …

    $(o)NamedPipe$(oext)   : (baseDir)NamedPipe.cpp  $(baseDir)NamedPipe.h

    or (with continuation character)

    $(o)NamedPipe$(oext)   : (baseDir)NamedPipe.cpp  \
                              $(baseDir)NamedPipe.h

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children