Osx Gcc Bus Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Bus Error 10 C++
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack bus error linux Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Bus error: Inline
Bus Error (core Dumped) Linux
x86 assembly with GCC on Mac OS X up vote 4 down vote favorite I am getting a "Bus error" when I try to run this code compiled with gcc 4.2.1 on Snow Leopard #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or
Bus Error Core Dumped C
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss how to solve bus error in linux Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes
Bus Error (core Dumped) Centos
a minute: Sign up Bus error troubleshooting up vote 7 down vote favorite 3 I am trying reverse a string. This is the code I tried: #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/10481385/bus-error-with-a-very-simple-opencv-program-with-mac-os-x site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/29480464/bus-error-10-in-c about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “bus error” bus error with a (very) simple opencv program (with Mac Os X) up vote 4 down vote favorite I know that "bus error" is often due to a programming errosr. But I really can not see such error in a three lines program : int main(int argc, char** argv) { IplImage *src = cvLoadImage("/tmp/Name.tiff", CV_LOAD_IMAGE_COLOR); IplImage* res = cvCreateImage( cvSize( 2, 2), IPL_DEPTH_8U, 3 ); cvSaveImage("/tmp/image.tiff", bus error 10 src); return 0; } I compile with the following: gcc -I/Library/Frameworks/OpenCV.framework/Versions/A/Headers /usr/local/lib/libopencv_* test.c Execution gives bus error. Very important: if I remove the second line (the call to cvCreateImage), it works with no problems. I'm using opencv 2.3 and MacOs 10.8.5, gcc (i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5566) c osx gcc opencv share|improve this question edited May 7 '12 at 11:46 Pavan Manjunath 14.7k55992 asked May 7 '12 at 11:35 Moez 1096 1 Do you have a stacktrace? Also you aren't using Mac OS 10.8.5, that's for sure. –trojanfoe May 7 '12 at 11:49 1 Did you try with a saner build command line (like specifying the libraries you need with -l, after your source file? (And do the headers you have there match to libraries you specify?) –Mat May 7 '12 at 11:56 1 Your compiler call is strange. Why not calling gcc with the -f(ramework) option instead ? It's precisely made to deal with paths and libraries inside frameworks correctly –sansuiso May 7 '12 at 12:06 did the call to cvLoadImage succeed? –William Morris May 7 '12 at 12:54 1 @u
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up bus error 10 in C up vote -1 down vote favorite I am a new beginer in C, I am doing tasks from USACO, this is the "gift1" task. I would like to think solutions my self, so if you just tell me why I get this bus error 10 instead of gaving me the answer of this task, that will be grateful grateful. I am using OS X System, and gcc(from Xcode) version is Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix Here is my code(still not finished yet): /* LANG: C TASK: gift1 */ #include