ok, I've gotten this problem before, but usually when I erase everything, and completely re-write it it works. but I don't feel like doing that again, I want to know why it's not working (and I have another program I made exactly like this one that works perfectly.. and I've been trying to copy it, but I can't find any more differences (other then variable names and such)
I've googled this problem before and came up empty handed, it looks like the problem occurs when a function is declared but not used.. but to me it looks like it is used... here is the code (simplified for easier diagnosis)
Main.cpp:
Code:
#include <Windows.h>
#include <iostream>
#include "Headr.h"
using namespace std;
int main()
{
int e = 12;
int r = 12;
int ret;
ret=sendint(e,r);
cout << ret ;
cin.get();
return 0;
}
second.cpp:
Code:
#include <Windows.h>
#include <iostream>
#include "Headr.h"
using namespace std;
int sendint(int x,int y)
{
cout << x << y;
return 0;
}
Headr.h
Code:
int sendint(int x,int y);
any Idea's? thanks, I owe you guys a lot already