By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,132 Members | 1,999 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,132 IT Pros & Developers. It's quick & easy.

Strange Linker Error

P: n/a
This code gives an error:

ySplitter = max(NewySplitter, cySplitter); // Line 1028
ySplitter = min(ySplitter, cyClient- cyStatus- cySplitter);

C:/Documents and Settings/Derek/My Documents/My
Code/Windows/DBClip/App.cpp:1028: undefined reference to `App::cySplitter'

How can it accept the use of that member on line 1029 and elsewhere, but
refuse it there?
Thanks in advance

--
Derek
Jul 22 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Derek Baker wrote:
This code gives an error:

ySplitter = max(NewySplitter, cySplitter); // Line 1028
ySplitter = min(ySplitter, cyClient- cyStatus- cySplitter);

C:/Documents and Settings/Derek/My Documents/My
Code/Windows/DBClip/App.cpp:1028: undefined reference to
`App::cySplitter'

How can it accept the use of that member on line 1029 and elsewhere,
but refuse it there?
Thanks in advance


Nevermind:

http://sourceforge.net/forum/forum.p...forum_id=48211

--
Derek
Jul 22 '05 #2

P: n/a
Derek Baker wrote:
This code gives an error:

ySplitter = max(NewySplitter, cySplitter); // Line 1028
ySplitter = min(ySplitter, cyClient- cyStatus- cySplitter);

C:/Documents and Settings/Derek/My Documents/My
Code/Windows/DBClip/App.cpp:1028: undefined reference to `App::cySplitter'

How can it accept the use of that member on line 1029 and elsewhere, but
refuse it there?


It doesn't accept it on 1029. "Undefined reference to <symbolname>" is
usually only reported _once_ per _scope_.

Victor
Jul 22 '05 #3

P: n/a
Victor Bazarov wrote:
Derek Baker wrote:
This code gives an error:

ySplitter = max(NewySplitter, cySplitter); // Line 1028
ySplitter = min(ySplitter, cyClient- cyStatus- cySplitter);

C:/Documents and Settings/Derek/My Documents/My
Code/Windows/DBClip/App.cpp:1028: undefined reference to
`App::cySplitter'

How can it accept the use of that member on line 1029 and elsewhere,
but refuse it there?


It doesn't accept it on 1029. "Undefined reference to <symbolname>"
is usually only reported _once_ per _scope_.

Victor


Are you sure? If I commented out 1028 it did compile.

--
Derek
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.