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

error open frameworks compiling with window #9

Closed
viniciolindo opened this issue Feb 6, 2017 · 3 comments
Closed

error open frameworks compiling with window #9

viniciolindo opened this issue Feb 6, 2017 · 3 comments

Comments

@viniciolindo
Copy link

i have this error when i compile simple button example with windows

obj/linuxarmv6l/Release/src/ofApp.o:(.data+0x0): multiple definition of `OLEDFont'
obj/linuxarmv6l/Release/src/main.o:(.data+0x0): first defined here
collect2: error: ld returned 1 exit status

@kashimAstro
Copy link
Owner

Hi @viniciolindo,
I tried to compile now the example-simple-led for openFrameworks, and seems to be successful.

Reported error, it seems to incriminate a double definition within the file ofApp, the basic example does not use ofApp.h and ofApp.cpp but it's all written in src/main.cpp. you confirm??

simpleled

thanks for the tip..

@viniciolindo
Copy link
Author

I'm working with ofApp.cpp and ofApp.h separated.
I test that if import only gpio.h instead ofxGPIO.h it compile without error

@kashimAstro
Copy link
Owner

ok, I made a patch that solved the dual includes.

check this:
https://github.com/kashimAstro/ofxGPIO/blob/master/src/font.h#L100

let me know if this solves the problem..

thanks and good day

This issue was closed.
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

2 participants