Go to Post What is this... extreme air-keyboarding?...For those about to type, we salute you. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-02-2006, 22:07
Smithvillefirst Smithvillefirst is offline
Anthony Peck
FRC #1806 (Smithville First)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Smithville
Posts: 9
Smithvillefirst is an unknown quantity at this point
Using vars across multiple .c files

We have a few global variables that we want to use in both user_routines.c and tracking.c. We can not seem to declare and access them in a way that the compiler likes. We either get an error saying multiple definitions, or not defined. I've tried defining the var in a globals.h and including that in both .c files, but that doesn't work. I've tried adding extern declarations in my .c files, but no dice there either. I've tried about every combo of declaring in .c and .h files, with and without externs but nothing seems to work. Anybody know what my problem is?
__________________
Anthony Peck
Integration Manager
Team 1806
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB 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
using eclipse dasRatsel Programming 82 02-01-2006 13:20
Multiple Files EricWilliams Programming 4 30-03-2005 15:51
Combining multiple objects in different files into the same scene and file? DinkyDogg 3D Animation and Competition 8 19-02-2005 19:14
problem with .c files incognito_NICK Programming 5 31-01-2005 13:19
Multiple files usage punarhero Programming 2 12-01-2003 11:45


All times are GMT -5. The time now is 09:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi