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

Makefile: Undeclared Identifier

SOLVED
Florian0205
Regular Member

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

Re: Makefile: Undeclared Identifier

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

Tags (1)
3 REPLIES 3

Re: Makefile: Undeclared Identifier

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.

Tags (1)

Re: Makefile: Undeclared Identifier

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

Re: Makefile: Undeclared Identifier

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

Tags (1)
Announcements