This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I'm trying to create a program using Xcode. The program is very simple, it uses threads.
I have done everything right. Or so I thought. This error comes up and I have do ideia what it means!
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
along with:
ld: duplicate symbol _thr_inc_low in (... a bunch of crap that is the directory of this file) main.o
Can you please help me?
It means you have multiple .o files or libraries that include the symbol _thr_inc_low.
One of the common reasons for this is defining an object in a header file (rather than just declaring it, say with an extern or a prototype) that is included in multiple source files.
Can't tell more without seeing the relevant parts of your source code.
Related
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
One of the requirements for my college project is that my C file must be gcc compilable.
I do not know what this means and I do not know how to go about determining whether a C file is gcc compilable or not. How does one do this?
At the moment, I am using VS 2012 to compile my files. Part of the requirements for the submission of the code is that it must be able to be executed on the command line.
Download GCC and attempt to compile the file with it.
Don't use headers or library functions that are specific to Windows or MSVC. For example (and yes, I'm dating myself here) the "conio.h" file and functions declared in it are not recognized by gcc.
If you limit yourself to what's defined in the language standard, then your code will compile under gcc.
The easiest way to get started compiling with GCC on Windows is to install the version of Code::Blocks that bundles MinGW's gcc environment.
http://www.codeblocks.org/downloads/5#windows
You're looking to download the codeblocks-10.05mingw-setup.exe
When you create a C or C++ project with that version of Code::Blocks, gcc will be the default compiler and you're all set. (until you start needing to do anything like I/O multiplexing, at which point you'll need a real Unix install)
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
When I try to compile a C code again in DEV C++, the tool gives the error below. If I try to copy the same code in new file it works fine, but again I can't compile new code, needing to copy to another file again.
Permission denied ld returned 1 exit status
The program is probably running. You'll need to kill it before recompiling.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I was just wondering what would be the easiest way to get WIX to append some lines to a configuration file (it is a matlab file) of other application, basically what I need is:
Find where a third party application is installed (that I can handle)
Append some lines to a configuration file of this third party application
I figure I would need to use a custom action right? But what would be the easiest way?
Thanks a lot!
It depends on what format the configuration file is but generally speaking, it's easiest to avoid custom actions altogether if possible.
For INI files, you can use the IniFile Element
For XML files, you can use the XmlConfig Element located in the WiX Util Extension
I ended up using a custom action.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I have two pieces of source code for two dll files. They both work individually, but i need them to be put into one dll file.
The first source is here: http://pastebin.com/vqtNLca8
The second source is here: http://pastebin.com/yvFPEMkf
How can i make this one dll file?
Pass them both to LINK.EXE when you build the DLL.
You'll also want to disable one of the DllMain definitions, to avoid a symbol multiply defined error.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I am using Visual Studio 2010 Premium version
When I run the profiler, it runs fine, but then it just produces results telling me that my app [appName.exe] (brackets are theirs) is using 99.99% of the time spent.
I googled trying to find anyone reporting similar issues, but to no avail. I am using Windows 7, compiling using x64 for my multi-threaded app. However, even when I turn off all the multithread pragma directives, same results.
The last time I used the profiler on my app it worked as one would expect, telling which functions were the most expensive.
Btw, I am using c, not c++, if that makes any difference.
Any ideas?
Thank you. Apparently somehow I got it set to analyze the release (vs debug) version.