#include "utils.h"
#include "uxconio.h"
[/code:1]
结果一编译就出错:
[code:1]
[typhoon@TFW-RFLD40B-NB ChainTableTestCpp]$ ./build
In file included from body2.cpp:5,
from share.h:1,
from main.cpp:3:
uxconio.h: In function `char getch()':
uxconio.h:37: redefinition of `char getch()'
uxconio.h:37: `char getch()' previously defined here
uxconio.h:37: redefinition of `char getch()'
uxconio.h:37: `char getch()' previously defined here
uxconio.h: In function `void putch(char)':
uxconio.h:70: redefinition of `void putch(char)'
uxconio.h:70: `void putch(char)' previously defined here
uxconio.h:70: redefinition of `void putch(char)'
uxconio.h:70: `void putch(char)' previously defined here
[typhoon@TFW-RFLD40B-NB ChainTableTestCpp]$
[/code:1]
我有什么办法同时使用这两个函数?