| |
|
Mel
| I just recently started to re-teach myself C++ after a few years, so many it's just a stupid error on my part. (If so, permission to correct/scold/flame/beat/shoot me is freely granted)
Anyway, here are my the contents of my three files:
***************************************
//driver.cpp
#include "fraction.h"
int main()
{
Fraction a;
a.doNothing();
return 0;
}
***************************************
//fraction.cpp
#include "fraction.h"
void Fraction::doNothing()
{
}
***************************************
//fraction.h
#ifndef __FRACTION_H
#define __FRACTION_H
class Fraction
{
public:
void doNothing();
};
#endif
***************************************
After running "dmc driver", I get the following output:
link driver,,,user32+kernel32/noi;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989-2001 All Rights Reserved
driver.obj(driver)
Error 42: Symbol Undefined ?doNothing@Fraction@@QAEXXZ (void syscall
Fraction::doNothing( void ))
--- errorlevel 1
The only reason I can think of is that maybe my system's Japanese configuration is throwing something off ( '\' is always displayed as a yen symbol). Anyone have any ideas?
Thanks in advance,
Mel
|