我正在使用其他人编写的库,它有点基于 C 用于 C++ 用法-我认为-。头文件或源文件中使用的所有包含内容都采用 <> 而不是 "" 的形式,即使它们不是标准库文件。我的编译器无法识别它们并返回错误“找不到文件”
问题的一个示例位于以下标题中:
#ifndef _ga_ga_h_
#define _ga_ga_h_
// Make sure that we get the configuration into each of the galib components
// that will be used.
#include <ga/gaconfig.h>
// These are the headers for all of the genetic algorithm classes.
#include <ga/GASimpleGA.h>
#include <ga/GASStateGA.h>
#include <ga/GAIncGA.h>
#include <ga/GADemeGA.h>
#include <ga/GADCrowdingGA.h>
// Here we include the headers for all of the various genome types.
#include <ga/GA1DBinStrGenome.h>
#include <ga/GA2DBinStrGenome.h>
#include <ga/GA3DBinStrGenome.h>
#include <ga/GABin2DecGenome.h>
Run Code Online (Sandbox Code Playgroud)
我使用 #include …