aiwaweiwei 发表于 2007-4-30 10:41:00

请教ARX环境配置问题,程序总是不能编译

我用下面的方法进行了环境配置
在TOOLs-options-Directories-includefiles:加载了...objectArx2002\INC
在TOOLS-Options-Directories-LibraryFiles加载了...objectArx2002\LIB
同时还运行了WizardSetup.exe,安装了objectARX
(1) 选择菜单命令【Project】→【Settings…】,弹出“Project Settings”对话框。
(2) 在“Project Settings”对话框中选择“Setting For:”下拉列表的“All Configurations”项。
(3) 在“Project Settings”对话框中选择“C/C++”选项卡。
(4) 在“Category:”下拉列表中选择“Code Generation”项。然后选中“Use run-time library”下拉列表中的“Multithreaded DLL”选项(如图38-6所示)。再在“Category:”下拉列表框中选择“Preprocessor”项,然后在“Preprocessor definitions:”编辑框中内容的后面添加“ACRXAPP,RADPACK”,表示需要预链接的库(如图38-7所示)。
(5) 在“Project Settings”对话框中选择“Link”选项卡。
(6) 在“Category:”下拉列表中选择“General”项,然后在“Output file name:”编辑框中键入应用程序名“.\HelloARX.arx”(图38-8);在“Object/library modules:”编辑框中添加“acutil15.lib acrx15.lib acdb15.lib acedapi.lib rxapi.lib acad.lib acge15.lib”;在“Category:”下拉列表框中选择“Output”项,然后在“Base address:”编辑框中键入“0x1c000000”(图38-9)。
可是当编译程序时,总是不能编译,提示错误:
Compiling resources...
Compiling...
Error executing cl.exe.
请问是什么原因,应该怎么解决?已经困扰我好久了,求各位帮帮忙!谢谢!!

PDM 发表于 2007-4-30 13:10:00

我也正愁这个环境配置呢,这么多版本(VC6,VS,ARX,AutoCAD)不知该如何组合?
希望有经验者给点建议。多谢了

aiwaweiwei 发表于 2007-5-2 09:53:00

上面的配置没问题,是我的系统有问题!楼上的按我说的步骤设置没问题的!
不过我还有一个问题,当编译程序时提示这样的错误是怎么回事啊?应该怎么解决?
"Warning! You should better not run this application in a Standard AutoCAD release.
Due to the memory managment constraints.
"
页: [1]
查看完整版本: 请教ARX环境配置问题,程序总是不能编译