Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Loading release Build bt not hybrid Pin
Hans Dietrich7-Apr-11 21:42
mentorHans Dietrich7-Apr-11 21:42 
QuestionDynamic shared memory Pin
pandit847-Apr-11 19:35
pandit847-Apr-11 19:35 
QuestionHow can I read ODBC from registry ? Pin
_Flaviu7-Apr-11 9:59
_Flaviu7-Apr-11 9:59 
GeneralRe: How can I read ODBC from registry ? Pin
David Crow7-Apr-11 18:06
David Crow7-Apr-11 18:06 
GeneralRe: How can I read ODBC from registry ? Pin
_Flaviu7-Apr-11 19:14
_Flaviu7-Apr-11 19:14 
GeneralRe: How can I read ODBC from registry ? Pin
_Flaviu7-Apr-11 19:52
_Flaviu7-Apr-11 19:52 
QuestionWM_KICKIDLE Message and Cursor? Pin
Arrin7-Apr-11 4:37
Arrin7-Apr-11 4:37 
QuestionGlobal array question [modified] Pin
Cristoff6-Apr-11 23:48
Cristoff6-Apr-11 23:48 
I've declared an array like that in a header (the code should be a pure C code):

int someMap[MAPSIZE_X][MAPSIZE_Y];

and I want to use it as a global variable. The problem is if I include that header in another file I get a linker error that this variable was already defined and I'm really stuck here and I have absolutely no clue what's going on and how I'm missing the point.

If I use static it is fine but it isn't global any more.
"extern int gameMap[MAPSIZE_X][MAPSIZE_Y];" doesn't work as I'm expecting. I get the linker error even if I don't use the array in any files.
modified on Thursday, April 7, 2011 6:34 AM

AnswerRe: Global array question Pin
«_Superman_»7-Apr-11 0:18
professional«_Superman_»7-Apr-11 0:18 
GeneralRe: Global array question Pin
Cristoff7-Apr-11 0:30
Cristoff7-Apr-11 0:30 
GeneralRe: Global array question Pin
«_Superman_»7-Apr-11 0:34
professional«_Superman_»7-Apr-11 0:34 
GeneralRe: Global array question Pin
Cristoff7-Apr-11 0:59
Cristoff7-Apr-11 0:59 
AnswerRe: Global array question [modified] Pin
Luc Pattyn7-Apr-11 1:48
sitebuilderLuc Pattyn7-Apr-11 1:48 
GeneralRe: Global array question Pin
Cristoff8-Apr-11 0:14
Cristoff8-Apr-11 0:14 
GeneralRe: Global array question Pin
Luc Pattyn8-Apr-11 0:19
sitebuilderLuc Pattyn8-Apr-11 0:19 
AnswerRe: Global array question PinPopular
Stefan_Lang7-Apr-11 2:18
Stefan_Lang7-Apr-11 2:18 
GeneralRe: Global array question Pin
Albert Holguin7-Apr-11 3:51
professionalAlbert Holguin7-Apr-11 3:51 
GeneralRe: Global array question Pin
Cristoff8-Apr-11 0:16
Cristoff8-Apr-11 0:16 
Questionmemory leak problem Pin
shashankacharya6-Apr-11 18:35
shashankacharya6-Apr-11 18:35 
AnswerRe: memory leak problem PinPopular
Rajesh R Subramanian6-Apr-11 22:02
professionalRajesh R Subramanian6-Apr-11 22:02 
Questionupdate structure in a vector of structures Pin
csrss6-Apr-11 8:53
csrss6-Apr-11 8:53 
AnswerRe: update structure in a vector of structures Pin
csrss6-Apr-11 9:19
csrss6-Apr-11 9:19 
AnswerRe: update structure in a vector of structures Pin
Niklas L6-Apr-11 20:55
Niklas L6-Apr-11 20:55 
GeneralRe: update structure in a vector of structures Pin
csrss7-Apr-11 2:14
csrss7-Apr-11 2:14 
AnswerRe: update structure in a vector of structures Pin
Parthi_Appu6-Apr-11 23:32
Parthi_Appu6-Apr-11 23:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.