Having trouble with undefined reference to error - c

I know there are a lot of posts related to this particular error but nothing seems to be helpful in ,my case, So please forgive me for that I am posting question after almost 2 days of research on google:(
I am working on a game for blackberry playbook, and for sound/audio I am using openal along with OggVorbis, I have downloaded blackberry port of OggVorbis from following source
https://github.com/blackberry/OggVorbis
but its integration with game is creating issue like it says undefined reference to ov_clear that is in vorbisfile.h and vorbisfile.c is compiled and I can see ov_clear in libvorbis.a qnx momentics IDE, and I have added libvorbis in my game but still I am getting these errors
Please help

Somehow I did figure it out what was the problem. I am a C#.net programmer where it does not matter you are adding reference to a library project or main project, but here you can't add a reference to a static library in an other static library, that was the reason for these errors. Thats my understanding may be someone could guide me in a better detail way.
Regards
Ahsan

Related

VSCode launch program error with C language

enter image description here
enter image description here
enter image description here
Can someone please help ? I am getting this program not found error with C language. I have been googling for the past 2 weeks and came across bazillions of questions and solutions for this error including on this platform itself but nothing seems to work for me.
Just started with learning programming and really frustrated with not being able to proceed.
I am literally on the verge of giving up and sticking with codeblocks.
Just please, someone sincerely help me if possible.
First of all, the question is not clear. If you can include the files in the folder and your tasks.json that would be ideal.
But from the error, one thing can be assumed is that your launch json is not able to find the hello.exe program. You either first need to generate it using C compiler or use the "preLaunchTask" in launch json, which points to one of the defined tasks in tasks.json.
P.S. You need to first go through the basics of debugging in VS-Code, then hopefully you will not run through problems like this.

Can't open/create my Salesforce projects with Mavensmate anymore

I used to connect my Salesforce projects without any problem since today.
Now everytime I want to create or open a new project through Mavensmate. I get this error :
Error initializing project: client identifier invalid
I don't know how to solve it. I have googling without finding any solution. I thought this could solve my issue, but it doesn't work.
Please help!
Not sure if this is related or already said but it sounds like MavensMate has finally died. Related conversation/details here. If I knew how to build the windows version of the MavensMate source I'd try myself but seems like there is a security issue that would have to be applied too which I don't have time for (plus possibly out of my expertise reach).
So I'm now biting the bullet and starting the move from Sublime to VS Code using a couple different articles (here and here). Pretty sad about this but seems no other way. If possible I'll loop back to Sublime in the future but no idea if that will be feasible or not. If anyone finds a fix for MavensMate or a new way to do SFDC work in Sublime please let us know!

Opencv CV ColorHSV error

can anyone tell me why i am getting this error?
because of that I'm getting this error too
Trying to integrate opencv with artoolkit
Ruben, we've talked about this on Tweeter. This is a compiling error that is telling you that it doesn't know what colorHSV is.
Looking at your code and the error message, I can tell that colorHSV is a class that should be defined in your code or in one of the 3rd party libraries you are using.
I've done some research and I found a code very similar to yours. Apparently, colorHSV is a custom data type that the developer uses, but the page doesn't provide the entire source code of the application, just a few snippets here and there to give directions. In other words, there's a lot of code missing in that post.
However, they do mention using a technology for Augmented Reality named Occlusion. A little bit more of research showed me ait-occlusion, which implements a colorHSV. This seems to be the same type you are using in your code.
If you still haven't figured it out, you need to:
download/compile/install Occlusion on your system,
add the proper #include for ColorHSV.h,
and finally adjust your project properties to link your application with this library.
If you have any doubts on any of these procedures, Google it.

How Can I use the GtkPlug/GtkSocket in GTK+

I'm a newbie to GTK+, I want to use GtkPlug/GtkSocket to embed another application with my application. I referred to Devhelp, but only a few introduction about these two class. I also searched many days, but I failed to find a demo.
Can somebody show me how to use GtkPlug/GtkSocket? complete source code and explanation is better. Thank you all.
There used to be a section in the GTKmm tutorial, here is the content that is no longer present: https://gitlab.gnome.org/GNOME/gtkmm-documentation/-/commit/2c11fad94458d4e72998e13aa1de8d7f742ce74b
Even though it is in C++, it gives a good example of how to write a simple plug-socket system. However, since I originally wrote this answer 10 years ago, the best practice has changed to "don't do this".

Working comfortably in C using Eclipse

Umm, I've been using Eclipse for Java development and I am trying to use it now for making C apps.
The problem is that I don't feel too comfortable with it. Namely:
I need to include headers by hand, i.e. not automatically.
I've never seen a 'quickfix' to be available for any problem.
I can't spot the problem before it has been compiled.
Any ideas on how I could make myself feel a bit better?
Sorry if my questions are rather stupid, but getting the way down from Java to C is rather hard on me.
Thanks!
Yeah its a little harder to go from Java to C, Java didn't exist when I was programming C.
Some comments:
Automatically including headers is difficult in C
See #include headers in C/C++
You could use lint to catch some errors...
http://syncor.blogspot.com/2010/03/using-lint-in-eclipse-with-netburner.html
Consider doing TDD using something like gTest, and automate your build process.
http://www.slideshare.net/amritayan/test-driven-development-in-c, might help you develop a different rhythm.
gtest in Eclipse ... https://github.com/ospector/gtest-gbar
Have fun!
On Mac OS XCode is an option.
On startup:
New Application -> Command Line Tool ->Type C
And Bob is your proverbial (aunty).
You get all the XCode short cuts & hit ESC in your editor window for code completion.
Hmmm.... think I'll start using it actually. ;-)
re:
I can't spot the problem before it has
been compiled.
You can get immediate feedback on syntax errors. They show up as question marks in the left gutter and yellow squiggly lines under the error. This happens immediately. Make sure under Window->Preferences-General->Editors->Text Editors->Annotations that you have the "Show in" checkboxes checked for the C/C++ Indexer Markers and C/C++ Occurrences.

Resources