Skip to main content
1-Visitor
July 14, 2020
Solved

Makefile: Undeclared Identifier

  • July 14, 2020
  • 2 replies
  • 4289 views

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

Best answer by JB_87049

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

2 replies

14-Alexandrite
July 14, 2020

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.

1-Visitor
July 14, 2020

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

JB_8704915-MoonstoneAnswer
15-Moonstone
July 14, 2020

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