配置 C 和 C++ 生成工具
另请参见
您可以使用“选项”窗口配置 C 和 C++ 项目的缺省生成工具。
配置 C 和 C++ 生成工具:
-
选择“工具”>“选项”。
-
在窗口的顶部窗格中单击 "C/C++"。
-
单击“生成工具”标签。
-
根据需要修改属性。
可以设置下列属性:
-
Development Host. The Development Host list includes your local host and any remote hosts you have defined. 有关使用远程主机的信息,请参见远程开发。您可以添加和删除远程开发主机、更改缺省主机以及与远程主机共享本地主机上的项目源。
-
要添加远程主机,请单击“编辑”。在“开发主机管理器”对话框中,单击“添加”。The New Remote Development Host wizard starts. See the help for the New Remote Development Host wizard for more information.
-
要删除远程主机,请单击“编辑”。在“开发主机管理器”对话框中,选择要删除的主机,单击“删除”,然后单击“确定”。
-
To set a host as the default development host, select the host from the Development Host list and click Set as Default.
-
要将本地主机上的项目源映射到远程主机,请单击“路径映射器”。In the Edit Path's Map dialog box, select the remote host in the Host list. For each mapping, type the local path to project sources in the Local Path field or use the browse button to navigate the local filesystem and select the project's location. In the Remote Path field, type the path to get to the project sources from the remote host.
-
To change IDE properties related to a remote development host, click Properties. In the Host Properties dialog box, you can change the name displayed in the IDE for the host by typing in the Name field. To change the way project files are shared with the remote host, select the file synchronization method in the Synchronization list. If the project files are in a shared folder accessible from the local host and remote host, select File System Sharing. If sharing the files is not possible, select rsync to use the rsync utility to copy files to the remote host, or scp to use the secure copy command to copy the files. The files are copied to your .netbeans directory by default. This can be changed with the Path Mapper.
-
工具集合。工具集合列表显示位于当前开发主机和本地主机上的集合。缺省集合以粗体列出。对于您创建的任何新项目,此集合在缺省情况下处于选中状态。可以在项目属性中更改特定项目的缺省工具集合。对于本地主机,可通过添加或删除集合来修改该列表。
-
-
要将集合添加到列表中,请单击“添加”,然后在“添加新工具集”对话框中指定基目录。将自动填写“工具集系列”和“工具集名称”。您可以为集合指定不同的名称。如果更改系列,请确保您指定的系列是该集合的正确系列,否则编译器标志可能无效。
-
要从列表中删除集合,请选择该集合,然后单击“删除”。
-
要复制集合,请从列表中选择该集合,然后在对话框中修改基目录、工具集系列或工具集名称。
-
要将集合设置为缺省集合,请选择该集合,然后单击“缺省”。
-
基目录。当前开发主机的编译器的基目录。可以针对本地主机编辑这些字段,但不能针对远程主机进行编辑。
-
-
C 编译器。生成项目时使用的 C 编译器。缺省编译器为在基目录中找到的第一个编译器。
-
C++ 编译器。生成项目时使用的 C++ 编译器。缺省编译器为在选定编译器集合中找到的第一个编译器。
-
Fortran 编译器。用于生成项目的 Fortran 编译器。缺省编译器为在基目录中找到的第一个编译器。
-
Make 命令。用于生成项目的 make 命令。缺省命令为在基目录中找到的第一个命令。要从基目录或其他目录中选择不同的命令,请单击“浏览”按钮,然后在“选择工具”对话框中导航至不同的命令。
-
调试器命令。调试项目时使用的 gdb 命令。缺省命令为在基目录中找到的第一个命令。要从基目录或其他目录中选择不同的命令,请单击“浏览”按钮,然后在“选择工具”对话框中导航至不同的命令。
要显示所有选定工具的版本,请单击“版本”。
要将所有选择的工具恢复为缺省设置,请单击“恢复缺省设置”。
要设置特定项目的生成工具属性,请右键单击该项目,然后选择“属性”。
配置 C 和 C++ 项目设置
配置 C 和 C++ 解析器设置
配置 C 和 C++ 格式化样式
配置 C 和 C++ 语义突出显示
配置 C 和 C++ 文件扩展名
设置项目属性
C/C++ 项目属性对话框:生成
法律声明