В Prediction.h у меня есть это:
Код: Выделить всё
#ifndef prediction
#define prediction
#include "structs.h"
typedef struct {
double estimation;
double variance;
} response;
response runPrediction(int obs, location* positions, double* observations,
int targets, location* targetPositions);
#endif
Код: Выделить всё
#include "prediction.h"
response runPrediction(int obs, location* positions, double* observations,
int targets, location* targetPositions) {
// code here
}
"runPrediction(int, location*, double*, int, location*)", ссылка на:
mainFrame::respondTo(char*, int) в mainFrame.o
ld: символы не найдены
Collect2: ld вернул 1 статус выхода
prediction.c помечен для компиляции для текущей цели. У меня нет проблем с тем, что другие файлы .cpp не компилируются. Есть мысли?
Подробнее здесь: https://stackoverflow.com/questions/306 ... -not-found
Мобильная версия