cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Makefile: Undeclared Identifier

Florian0205
6-Contributor

Makefile: Undeclared Identifier

Hello,

 

while making my makefile of my own application I got the following errors:

NMAKE : fatal error U1077: ….<a path>….: return code '0x2'

Slightly before there were following errors:

error C2065: 'ProModelitem': undeclared identifier

I guess I didn´t include my header files correctly in my makefile, but I don´t really have a solution to my problem.

My have my makefile attached.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
JB_87049
15-Moonstone
(To:Florian0205)

Just my 2 cents.

  1. ProModelitem is not recognised.
    Did you add the appropriate header file at the beginning of your source code?
    #include "ProModelitem.h"
  2. You have the following in your makefile PTC_34_F000_All
    This is longer than 8 characters (traditional DOS format)
    Did you try the 8.3 format?
    When you open a command prompt (cmd.exe) you can get a directory listing by issuing the command
    dir
    You can see the 8.3 format equivalents by issuing the command
    dir /X
    You can then copy the appropriate 8.3 form into your makefile

View solution in original post

3 REPLIES 3

Why dont you use cpp project instead of make file. sample project is available at Creo 4.0\M100\Common Files\protoolkit\x86e_win64\obj\pt_install_cxx.zip

 

This is easy to build and also add classes.

Thanks for your response. I am working with the C Toolkit, but I'll try it out the next days.

JB_87049
15-Moonstone
(To:Florian0205)

Just my 2 cents.

  1. ProModelitem is not recognised.
    Did you add the appropriate header file at the beginning of your source code?
    #include "ProModelitem.h"
  2. You have the following in your makefile PTC_34_F000_All
    This is longer than 8 characters (traditional DOS format)
    Did you try the 8.3 format?
    When you open a command prompt (cmd.exe) you can get a directory listing by issuing the command
    dir
    You can see the 8.3 format equivalents by issuing the command
    dir /X
    You can then copy the appropriate 8.3 form into your makefile
Top Tags