Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining languages titaniumdecoy Other Programming Languages 12 Jul 13th, 2006 3:03 PM
Compiling Maverik 6.2 (from C) megamind5005 C 16 May 3rd, 2006 6:41 PM
libraries matko C 1 Jan 22nd, 2006 3:12 PM
Jackpot game zorin Visual Basic 3 Jun 10th, 2005 2:19 PM
Pointers in C (Part II) Stack Overflow C 2 Apr 29th, 2005 11:39 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC