Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Out-of-line definition" error on Xcode 5 #4

Open
hideyukisaito opened this issue Oct 11, 2013 · 3 comments
Open

"Out-of-line definition" error on Xcode 5 #4

hideyukisaito opened this issue Oct 11, 2013 · 3 comments

Comments

@hideyukisaito
Copy link

Hi,

The following lines in ofxTextInputField.cpp cause build error on Xcode 5 with 0.8.0.

  • at line 344
void ofxTextInputField::setClipboard(string clippy) { ...
  • at line 349
string ofxTextInputField::getClipboard() { ...

Following might be cause probably.

#ifdef OF_VERSION_MINOR
#if OF_VERSION_MINOR>=8 || OF_VERSION_MAJOR>0
#define USE_GLFW_CLIPBOARD

#endif
#endif

It went well when I moved the lines above into header file.

Thanks!

@obviousjim
Copy link
Member

commit:
af16a05
should have the fix, unless i am misunderstanding?

On Fri, Oct 11, 2013 at 12:26 PM, Hideyuki Saito
notifications@github.comwrote:

Hi,

The following lines in ofxTextInputField.cpp cause build error on Xcode 5
with 0.8.0.

  • at line 344
    void ofxTextInputField::setClipboard(string clippy) { ...
  • at line 349
    string ofxTextInputField::getClipboard() { ...

Following might be cause probably.

#ifdef OF_VERSION_MINOR
#if OF_VERSION_MINOR>=8 || OF_VERSION_MAJOR>0
#define USE_GLFW_CLIPBOARD

#endif
#endif

It went well when I moved the lines above into header file.

Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/4
.

  • James

@hideyukisaito
Copy link
Author

oh, perhaps my misunderstanding, sorry...

@ChristophMann
Copy link

no you were right, i get the same error.

i think the reason is that definition inside ofxTextInputField.h:

  • at line 82

...
#ifdef USE_GLFW_CLIPBOARD
void setClipboard(string clippy);
string getClipboard();
#endif
...

is not affected by #define USE_GLFW_CLIPBOARD inside ofxTextInputField.cpp.
result is out-of-line-definition error there, for setClipboard(string clippy) and getClipboard()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants