compilation

Oracle's pro*C compiler and gnu C (__builtin_va_list, __attribute__, etc)

泪湿孤枕 提交于 2019-12-10 18:32:57
问题 I'm compiling a database library with pro C which converts the .ppc library file to a .c file that gcc can use. However, I'm getting a lot of errors in pro C like the following PCC-S-02201, Encountered the symbol "__ attribute__ " when expecting one of the `following` ... , Encountered the symbol "__builtin_va_list" when expecting one of the `following` The missing symbols are from a chain of standard includes like stdio.h and stdlib.h. How do I get around this issue? The library I'm

How to link against v8?

点点圈 提交于 2019-12-10 18:24:23
问题 I successfully compiled v8 javascript engine (on windows) ; now I try to follow the Getting started article but I am stuck at this point: Compile hello_world.cpp, linking to the static libraries created in the build process. The example is for linux (and probably for an earlier version). I tried to link against all libraries that I could without success: User@PC:/cygdrive/c/Users/Yvain/Documents/depot_tools/v8/build/Release g++ -std=c++0x -I"C:\Users\Yvain\Documents\depot_tools\v8" -Llib -lv8

Visual Studio 2010 is not catching compile errors on build

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 18:22:10
问题 I have a web project running in Visual Studio 2010 and target .Net framework 4. When I 'Build' the solution it will tell me the build was successful even though there are (known) errors in the code. If I open a page that has an error, the compiler will then pick up on the error and underline it in blue instead of red. Is there a setting that would drive this kind of behavior? Any ideas on how to fix? 回答1: If you have multiple projects in your solution it is possible that one of them is not

Trying to compile libdwarf, gives undefined errors

你说的曾经没有我的故事 提交于 2019-12-10 18:19:57
问题 I'm trying to build the libdwarf api under windows but I'm receiving the following compile errors. in dwarf_elf_access.c undefined type Elf32_Ehdr, undefined symbol EI_CLASS undefined symbol ELFCLASS64 undefined symbol ELFDATA2LSB ... I did a search through all the header files and source files and I couldn't find them defined anywhere as far as I could tell. Are these unix/linux specific definitions? If it is how should these errors be resolved under windows? Thanks 回答1: It seems you need to

Strange compilation behaviour when calling a template method from another template object

亡梦爱人 提交于 2019-12-10 18:08:52
问题 Could someone explain why the following c++ code is not behaving as expected: struct Object { template< int i > void foo(){ } }; template<int counter> struct Container { Object v[counter]; void test(){ // this works as expected Object a; a.foo<1>(); // This works as well: Object *b = new Object(); b->foo<1>(); // now try the same thing with the array: v[0] = Object(); // that's fine (just testing access to the array) # if defined BUG1 v[0].foo<1>(); // compilation fails # elif defined BUG2 (v

How to Compile and Debug C++ in Notepad++ using Turbo C++ Compiler

孤街醉人 提交于 2019-12-10 18:07:37
问题 I have installed NppExecute plugin in notepad++. I am not able to figure out next step to compile and debug C,C++ programs in Notepad++. System Details: (a) Turbo C directory C:\TC (b) OS Windows 7 Please provide complete details on how to set Environment Variable and Scripts for Compiling and Debugging. 回答1: Notepad++ has the run feature, but as far as I know it's unable to help you debugging (e.g. stepping through code, watching variables, etc.). Your best bet would be using a simple batch

iOS 64-bit app Doubles in Size

南笙酒味 提交于 2019-12-10 17:55:21
问题 I just submitted an app update to the iOS AppStore with 64-bit and 32-bit compatibility. I haven't changed anything except the 64-bit architecture, however the app size is now almost doubled from a pre-64-bit size of 2.7 MB to 4.5 MB. Is this normal when compiling the app for both 64-bit and 32-bit iOS devices? Why does this happen (anyone care to explain in technical terms)? Or did something funky just happen in Xcode? 回答1: It's pretty normal because the code is compiled twice - once for 32

Compiling libmagic statically (c/c++ file type detection)

天大地大妈咪最大 提交于 2019-12-10 17:55:18
问题 Thanks to the guys that helped me with my previous question (linked just for reference). I can place the files fileTypeTest.cpp , libmagic.a , and magic in a directory, and I can compile with g++ -lmagic fileTypeTest.cpp fileTypeTest . Later, I'll be testing to see if it runs in Windows compiled with MinGW. I'm planning on using libmagic in a small GUI application, and I'd like to compile it statically for distribution. My problem is that libmagic seems to require the external file, magic .

Linphone for iOS

妖精的绣舞 提交于 2019-12-10 17:51:56
问题 I need to build linphone for iOS (and android and windows after that, but that is of later concern). Since no one is able to answer my previous question nor a similar one, can someone at least point me to a good resource on the subject? I feel like I tried everything already, and the project still won't compile (lot's of files missing, include paths are wrong, libraries can't be found etc...). Linphone doesn't have a forum as far as I know, and any threads I find on the internet are

Cannot compile OpenCV code (C++)

本秂侑毒 提交于 2019-12-10 17:44:39
问题 Okay, so I have been searching for this problem for a while, and I still am clueless as to how to solve it. I am trying to run the sample code available here: http://docs.opencv.org/trunk/d1/dc5/tutorial_background_subtraction.html. I understand the code. I just cannot get it to compile! The problem is with library includes . Here's my Makefile : CFLAGS = `pkg-config --cflags opencv` LIBS = `pkg-config --libs opencv` % : %.cpp g++ $(CFLAGS) $(LIBS) -o $@ $< Here's the error : prakhar@inS4n3 ~