二次开发求助
:hug: 求助:pro/e三维基本零件的参数化设计``` 急``` 这方面的书籍很多
可以解一本或者买一本或者下载一本看看。
望各位大侠帮助小弟解迷题!!!
我在做makefile文件的时候,用VC调试,出现如下内容``--------------------Configuration: make_gear1 - Win32 Debug--------------------
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
NMAKE : fatal error U1073: don't know how to make 'E:\ProE\bishe\GEAR\make_gear/gear.c'
Stop.
Error executing NMAKE.
make_gear1.exe - 1 error(s), 0 warning(s)
请问如何解决```... 把make文件贴出来看看
建议参考机械工业出版社出版的《pro/toolkit程序设计》
[ 本帖最后由 MVH 于 2007-6-1 11:00 编辑 ] 请问make文件需要重新改写吗?
贴到哪个位置?
谢谢楼上指教``` 本帖最后由 wdhd 于 2016-3-29 11:25 编辑
原帖由 huyoyu 于 2007-6-3 20:38 发表
请问make文件需要重新改写吗?
贴到哪个位置?
谢谢楼上指教```
make文件的内容贴到论坛中来看看
请楼上的高人看看:
# File NameMAKEFILENAME = gear
# Machine Type
PRO_MACHINE_TYPE = i486_nt
# Executable names
EXE = gear.exe
EXE_DLL = gear.dll
# Pro/Toolkit Source & Machine Loadpoint(EXTERNAL USE - DEFAULT)
PTC_DIR = D:\Program Files\proeWildfire 2.0
PROTOOL_SRC = $(PTC_DIR)/protoolkit
PROTOOL_SYS = $(PROTOOL_SRC)/$(PRO_MACHINE_TYPE)
PROTOOL_SRC = $(PTC_DIR)/prodevelop
PROTOOL_SYS = $(PROTOOL_SRC)/$(PRO_MACHINE_TYPE)
# Pro/Toolkit Source & Machine Loadpoint(PTC INTERNAL USE)
#PROTOOL_SRC = $(PTCSRC)/protoolkit
#PROTOOL_SYS = $(PTCSYS)
#PROTOOL_SRC = $(PTCSRC)/prodevelop
#PROTOOL_SYS = $(PTCSYS)
# Include File Paths
INCS = -I. -I$(PROTOOL_SRC)/protk_appls/includes
-I$(PROTOOL_SRC)/includes \
-I$(PRODEV_SRC)/includes
-I$(protk_appls)/includes
# Compiler Flags //
CC = cl
MACH = -DPRO_MACHINE=29 -DPRO_OS=4
CCFLAGS = -Dhypot=_hypot -DMSB_LEFT -Dfar=ptc_far -Dhuge=p_huge -Dnear=p_near -c -W2 -G4 -Za -D_X86_=1 -D_WSTDIO_DEFINED
CFLAGS = $(CCFLAGS) $(INCS) $(MACH)
# Libraries
PTCLIBS = $(PRODEV_SYS)/obj/prodevelop.lib
$(PROTOOL_SYS)/obj/protoolkit.lib
PTCLIBS_DLL = $(PRODEV_SYS)/obj/prodev_dll.lib
$(PROTOOL_SYS)/obj/protk_dll.lib
LIBS = kernel32.lib user32.lib advapi32.lib mpr.lib winspool.lib netapi32.lib adcapi32.lib protk_dll.libprodev_dll.libwsock32.lib
# Object files //
OBJS = gear.obj
# Linker //
LINK = link
$(EXE) :$(OBJS) $(PTCLIBS)
@echo Start at `date`
@echo PROTOOL_SRC = $(PROTOOL_SRC)
@echo PROTOOL_SYS = $(PROTOOL_SYS)
$(LINK) /subsystem:console -out:$(EXE) /debug:none /debugtype:coff /machine:i386 @<<longline.list
$(OBJS) $(PTCLIBS) $(LIBS)
<<
@echo Finished at 'date'
del $(OBJS)
# Dll target
dll: $(EXE_DLL)
$(EXE_DLL) :$(OBJS) $(PTCLIBS_DLL)
@echo Start at 'date'
@echo PROTOOL_SRC = $(PROTOOL_SRC)
@echo PROTOOL_SYS = $(PROTOOL_SYS)
$(LINK) /subsystem:console -out:$(EXE_DLL) /debug:none /debugtype:coff /machine:i386 /dll @<<longline.list
$(OBJS) $(PTCLIBS_DLL) $(LIBS)
<<
@echo Finished at 'date'
del $(OBJS)
# object dependencies
PROTK_APPLS = E:\ProE二次开发实用教程\第五章\5.2\GEAR
gear.obj:$(PROTK_APPLS)/gear.c
$(CC) $(CFLAGS) $(PROTK_APPLS)/gear.c
clean :
del $(OBJS)
del $(EXE)
nmake -f $(MAKEFILENAME)
clean_dll :
del $(OBJS)
del $(EXE_DLL)
nmake -f $(MAKEFILENAME) dll
出现的错误如下``` 还请高人指点 小弟在此谢谢了
--------------------Configuration: gear1 - Win32 Debug--------------------Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
gear.mak(29) : fatal error U1034: syntax error : separator missing
Stop.
Error executing NMAKE.
gear1.exe - 1 error(s), 0 warning(s)
请楼上高人加QQ聊!
QQ 458487032[ 本帖最后由 mjhzhjg 于 2007-6-11 21:47 编辑 ] 本帖最后由 wdhd 于 2016-3-29 11:25 编辑
原帖由 huyoyu 于 2007-6-11 08:59 发表
--------------------Configuration: gear1 - Win32 Debug--------------------
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights res ...
29行缺少分割符 谢谢楼上高人指点 请问一下,具体怎么修改
第一次接触pro/e二次开发,还请高人指点 还请问楼上高人 ,我compile时没有问题,但是在Build源文件时出现如下错误提示:
Linking...
LINK : fatal error LNK1117: syntax error in option "subsystem:console/incremental:yes"
Error executing link.exe.
gear.exe - 1 error(s), 0 warning(s)
我在网上搜索资料,一些朋友是去掉incremental:yes,错误消失了,但是小弟去掉之后,还是不行,还请高人指点!!! 在Project中的Setting中,选Link选项,下面的文本框里把/subsystem:console改为/subsystem:windows 我修改了,但是修改后,又出现上面LINK : fatal error LNK1117: syntax error in option "subsystem:windows/incremental:yes"
还请高人指点
页:
[1]
2