View Single Post
Old Jan 13th, 2007, 3:39 PM   #1
iradic
Programmer
 
Join Date: Feb 2006
Posts: 36
Rep Power: 0 iradic is on a distinguished road
Function pointer?

Is it possible to define function pointer globally?

I'm getting strange errors when I do that, but defining it in function body works fine.

void (*show) (String msg, int level, Type tip);

in global scope gives me (path broken to multiple lines):
multiple definition of `show'
parse.o:
c:/msys/mingw/bin/../
lib/gcc/mingw32/3.4.2/../../../../
include/c++/3.4.2/bits/stl_algobase.h:(.bss+0x0): 
first defined here

Bye
iradic is offline   Reply With Quote