-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ofLog() padding error #4482
Comments
I don't think there have been any changes on this recently. This could be a file inclusion problem maybe? ping @arturoc |
this is working for me without problem, have you tried to use it in an
empty application? also if it still doesn't work in an empty example try
posting the error you are getting
|
also, please give your versions of OF/OS/IDE you are using. |
Ok, this worked in an empty application so I think the error is caused by one of my addons. The error appears intermittently so I'm not 100% sure but that really seems to be the case. Gonna close this. For the record though Thanks for the quick responses! |
I've just run into this issue again and I think I've got a better idea of it now. It doesn't happen in an empty or new project but it does appear if you include an addon that calls an ofLog() function. For example, I'm using ofxJSON in my project. When I add the source for it, or add it to addons make, I get this padding error. It seems like the application is trying to use the padding value before ofLog.cpp has been compiled. Has anyone else run into this? It seems like it would be pretty common. |
do you get a compile error or a runtime error? also can you post the full error output? and is it related with: |
Here's the output from the last class being compiled to the end: Compiling ../../../addons/ofxJSON/src/ofxJSONElement.cpp 16:51:26 Build Finished (took 4m:29s.569ms) |
Also, I checked out #5017 and tried making that change for myself but got a similar error. I may have implemented it wrong though. Here's the error output for that as well: Compiling /home/kojo/dev/sdks/ofx/git-repo/apps/myApps/f2/src/ofApp.cpp 16:44:36 Build Finished (took 8s.523ms) |
@K0j0 does this continue to be an issue? |
I'm not sure when this changed but it doesn't look like I can call ofLog() like this anymore
ofLog() << "Some stuff";
This doesn't compile either
ofLog(ofLogLevel::OF_LOG_NOTICE) << "Log me.";
Whenever I do I get an error about ofLog::padding not being defined. It's a static variable and I don't see a way to initialize it before the operator<< without making a ton of changes. Has the old logging functionality been changed or removed?
The text was updated successfully, but these errors were encountered: