现在,当我尝试编译时main.cpp
,我收到一个错误,Undefined symbol add(int) in module main.cpp
请帮助我!
//main.cpp
#include<iostream.h>
#include "addition.h"
int main()
{
add(4);
return (0);
}
//add.cpp
#include "addition.h"
#include<iostream.h>
void add(int a)
{
cout<<a<<endl;
}
//addition.h
void add(int a);