Last active
August 29, 2015 14:07
-
-
Save FernandoBasso/7cf37546269db636e9c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Vector | |
{ | |
public: | |
float x, y; | |
}; | |
class Point | |
{ | |
public: | |
Point AddVector(Vector v); | |
float x, y; | |
}; | |
Point Point::AddVector(Vector v) | |
{ | |
} | |
// `g++ prog.cpp -o bin/prog` results in: | |
// | |
// /usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../lib/libcygwin.a(libcmain.o): In function `main': | |
// /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/lib/libcmain.c:39: undefined reference to `WinMain' | |
// /usr/src/debug/cygwin-1.7.32-1/winsup/cygwin/lib/libcmain.c:39:(.text.startup+0x7e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `WinMain' | |
// collect2: error: ld returned 1 exit status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment