Xcode close the project when i tried to compile it - c

I have this problems with Xcode
when i try to compile a program the Xcode just close (randomly) the project where i'am working, this happen with any type of code, like "printf("%d",1+1) or any other more complex code. And don't happen every time, just some times.
And that it's, i don't know why this start to happen. Anyone know how to fix this issue?
I'm working with Command Line Tool, and the language is C.

Did you recently upgrade to Yosemite? One of the reasons might be the upgrade.
Un-install and re-install Xcode and try.
For other internal problems you will need to send the code or a log of the error report.

Related

VSCODE deletes my library line inclusion when saving automatically

I am programming C on VSCODE but I have this annoying problem. When vscode automatically saves my work, it deletes the line that has the library inclusion that I need. So when I compile it gives me an error that I did not specify the function. Someone can help me?
I don't know how to resolve.
You might have installed a corrupted version of vs code or the library files of the vs code and then location where you are saving your programs might be in different location. For example
The libary files of vs code might be in c drive and the program files might be in onedrive folder.
Try reinstalling it from an authentic source if the second stated problem is not the case. If the problem still continues then please comment down on my reply.
Reinstall either from microsoft store or from
https://code.visualstudio.com/download

Dev-C++ is prompting me to stdio.h file every time I execute any code

I accidentally ran a normal code this morning with the only difference that instead of starting with #include <stdio.h>, it started as follows: code #include <stdio.h> and the rest of the usual stuff: main(), etc.. Not sure if that has something to do to what is happening right now, but it was right after that and don't really see anything else that I did differently.
Anyway, I keep getting the below tab every time I run any piece of code. I have already reinstalled Dev-C++ a couple of times, but still getting this. I am running it on a Mac using Parallels Desktop. Any help would be very much appreciated! Thank you guys!
I resorted to reinstalling Windows 10 in Parallels Desktop. Now all is working fine. In any case, thank you very much for the help guys! :-)
Try to install the Dev C++ to a different disc or to another storage medium(HDD/SSD).
For, my case, it was also not opening even after I uninstalled and installed Dev C++ several times.
Then unlike another time, I installed it on a different disc.
It worked for me.
Hope this fixed your problem.

Compiled Vala app won't run - Elementary OS

I have just installed Elementary OS and am learning what looks to be a pretty cool language. It's very similar to C#. I am following the tutorials step-by-step, though there are a few problems.
I'm not sure if these issues are due to my noobiness on Linux, or if I was supposed to install some things before writing Vala code - but I have installed everything the tutorial said to install.
The problem is that the Tutorial teaches us about Launchpad.net. It then later on tells us to ah push our little hello world app to Launchpad.net. Now I have created my account on Launchpad.net and I used Terminal (as per the tutorial) and when I "push" code to Launchpad.net - I don't get any feedback in the terminal - what I mean by that is, I don't know if the push was OK or if there was a problem.
Now, with the compilation of the Tutorial's sample program. WHen I compile it - again - there's no feedback like "Successfully compiled" or "Not compiled". Which I don't mind, but it turns out it did compile. It created a program, but here's the problem. I can't run it.
When I click/double-click, it won't open.
I've gone through this tutorial many times, I've done everything 100% as it says in the Tutorial but it just won't work.
So:
Code pushed to Launchpad does not appear in Launchpad.net, and
After compiling my app from the tutorial, I cannot run the app.
Can someone please help? I'm not sure what to do, or what I've done wrong.
The tutorial
You did a chmod +x ./programname on the file didn't you? You won't be able to run it unless uou set it as executable. You can also do this with a file manager, right clicking and choosing properties.

Getting the examples in libspotify to work under Windows 7

I want to get started with libspotify on my Win 7 machine but I dont have a clue on how to get it all setup so that I can even run the examples included in the pack. I have a Spotify Premium account and I have tried installing libspotify by copying libspotify.dll to c:\windows, c:\windows\system32 and to c:\windows\SysWOW64 and also changed the path variable to include the path where libspotify.dll is located but I still dont understand how to get the examples to work.
I have Code::Blocks installed but as soon as I try to import and run any of the .c files included in the /examples/ folder I get all kinds of error messages. The truth is that I am not even sure how to install libspotify and the documentation is absolutely non existent so for a beginner it is impossible to even have a chance at getting started.
Is there somebody out there who can do a simple walkthrough on how to install libspotify and get the examples up and running on a Win 7 (64-bit) machine?
The only thing I really want to do with libspotify is to be able to via a command prompt or something like that be able to queue a song in Spotify so I dont really care about the other parts. But I can probably solve that by myself as long as I can get an example up and running.
Sadly libspotify is not well-supported on Windows, in fact the example code won't even build because there is no Windows audio driver for them. Your best bet to just get up and running would be to use mingw, or linux in a VirtualBox environment.

How to get version of program in Vala?

I'm starting to learn Vala and after just a few lines of code, I just encountered my first problem. It should be kinda easy but somehow I can't find anything on Google ('vala version number' or 'vala get version number' or 'how to get version of program in vala' don't bring up anything useful).
The online documentation of Vala doesn't bring up anything useful, either. Throughout the web I find stuff on how to get Vala's version or GTK version or stuff like that.
edited stuff
What I want to get: The version of the program that is running. It should query itself to get it's own version number. I can set a version number for the project in the Anjuta IDE so I expect to be able to get that version information somehow. Since I can get the name of the application (via GLib.Environment) I should be able to get the version information, too.
edit end
May someone please be so kind and help me out here? It seems my GoogleFu isn't with me today.
If you use the autotools, the generated config.h header will contain your package version. The symbols can then be used from Vala via a custom config.vapi binding. You could check out sampala, it shows the trick.

Resources