compiling

C : gdb behavior : value optimized out

Can anyone explain this behavior of gdb :- 900 memset(&new_ckpt_info,'\0',sizeof(CKPT_INFO)); (gdb) **903 prev_offset = cp_node->offset;** (gdb) **905 m_CPND_CKPTINFO_READ(ckpt_info,(char *)cb->shm_addr.ckpt_addr+sizeof(CKPT_** HDR),i_offset); (gdb) **903 prev_offset = cp_node->offset;** (gdb) **905 ...

multiple compiling errors with basic C++ application on VS2010 Beta 1

I just recently installed VS2010 Beta 1 from the Microsoft website , I started a basic C++ Win32 Console Application , that generated the following code: #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { return 0; } I tried compiling the code just to see how it runs and just then I encountered several(over a 100) compiling...

How well does Xgrid work with Xcode for parallel compiling?

I'm intrigued by the idea of using Xgrid to speed up my Xcode compiling across multiple machines... but it seems very difficult to find any information on people's experiences with it, any gotchas, etc. I don't have multiple Macs that I can test it with right now, so I'm curious. Have you tried it? How well has it worked for you? What k...

Debugging App on Iphone and now i get this error: unknown packet reply: "timeout" to environmental package

I have only started getting this error. The application works perfectly when working on the iPhone simulator, and there are now errors like the one above. The application is being put on a 3.0 iPhone if that is any help. ...

Ambiguous template, Code Warrior

The following code compiles in Visual C++ and gcc, but fails with Code Warrior The complaint is that the call to the template is ambiguous -- can't decide between doIt( M* ) and doIt( M const* ), even though in each case, the parameter is unambiguously cost or non-const. Irritatingly, if I supply the second template argument, it decides...

automatically copy a config file from referenced dll

I have 2 projects in my VS2005 solution: Exe.csproj and Dll.csproj Dll.csproj has an app.config Exe.csproj has a project reference to Dll.csproj If I compile Exe.csproj, than Dll.dll and Dll.pdb will be automatically copied to Exe/bin/debug, but Dll.dll.config not. Is there any way to get Dll.dll.config in Exe/bin/debug without post ...

gcc and g++ command prompt compiling and linking

Hey there, I have a small problem with compiling and linking with the command prompt(windows xp). Every .c file and .cpp file I compile or link has to be in the same directory as gcc (C:\Program Files\gcc\bin) and its quite hard to keep track of my files among all those gcc related files and its annoying too:). My question is how do I co...

Examples of compiling win32 api c programs (through command line) on windows

Attempting to do something very simple - compile basic win 32 c programs through windows cmd. This is something I should be able to do myself, but I am just so stuck here.. I keep stumbling into weird problems, vague errors. I dunno whether I should go into details. Using tcc ( tiny c compiler) One simple hellowin.c example from a b...

Compile asp.net web site and certain references are not being copied to Temporary ASP.NET Files Folder

Scenerio: I have an asp.net website that I am compiling successfully but keep getting an error in the browser saying that it can not find a referenced dll in the solution. I checked the directory in the Temporary ASP.NET File location and all of my referenced dll's are there except for the one it is failing to retrieve. I manually added ...

Can a Perl BEGIN block spread a virus or lose data?

I am still new to Perl. Since BEGIN blocks are run during compilation can't a virus spread or data loss occur from simply compiling? Does Perl do anything to stop it? If so does it mean the code in BEGIN blocks may act differently outside of it? ...

Strange compile (?) probem. Visual studio c++ 2008

I don't know much about this stuff. There's an app that I use on an XP netbook for tuning a car. It was working just fine. Then I needed to make a simple modification (output to STDOUT instead of to file) so I got the source from the author. My netbook doesn't have the space for a compiler. I have Visual Studio C++ 2008 on a Windows 7...

What does the C++ error message "<near match>" mean?

When compiling my code with the GNU C++ compiler I get something like bla.cxx: In function `int main(int, const char**)': bla.cxx:110: error: no matching function for call to `func(const classA*&, const classB<classC>*&) const' someheader.h:321: note: candidates are: bool func(const classA*, const T*&, const std::string&, std::string&) ...

Object code, linking time in C language

When compiling, C produces object code before linking time. I wonder if object code is in the form of binary yet? If so, what happened next in the linking time? ...

Compiling assembly for windows on linux

This is a homework task, but it's very simple. The task comes with a working assembly file. I just need help to compile it on linux instead of windows. I'm using Ubuntu. I've installed mingw32. The task itself is to add some functionality, not compiling it. The file itself is here: here. To much code for including it, and besides the c...

How can I check the validity of a code file?

I'm trying to check the validity of a particular 'stand-alone' code file from within my C#.Net app. Is there any way that I can check the file and get a visual studio's style errors list out? I'm only interested in running a basic check to ensure that the basics would validate. I.e. all variables are declared and method names are valid....

makefile missing separator

Hi guys... I have a makefile (provided by third party) which gives the following error Makefile:108: *** missing separator. Stop. The line in question is the following if statement.... any ideas? have tried various replacing tabs with spaces and not got very far at all... if have_sdl libiulib_a_SOURCES += $(srcdir)/utils/...

Oracle 7 ProC++ Libraries Help

I am modifying an old DLL which uses Oracle 7 ProC++ precompiled code (SQLLIB18.LIB) and don't have any documentation for this release. No joy back from Oracle either. Does anyone know what the numbers in the following compilation unit data represent? static const short sqlcud0[] = {8,4130,2,0,0,1,189,0,6,49,0,11,11,0,2,7,68,66,95,78,6...

Memory leak log message while *compiling* with Xcode for the iPhone

When I compile my iPhone project (in the command line), the log output looks like: 2009-11-05 22:19:57.494 xcodebuild[51128:613] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' === BUILDING NATIVE TARGET Foo OF PROJECT foo WITH THE DEFAULT CONFIGU...

Using make to generate bison grammar

In a project that uses make and bison, I'm having difficulty specifying that the compiled grammar grammar.tab.c depends on the grammar input grammar.y, that each object file depends on a corresponding source file (including grammar.tab.o), and that the executable depends on all object files. The problem is that running make when grammar...

Statically linking Winsock?

I'm using Winsock 1.1 in my project. I include wsock32.lib in "Additional Dependencies". I'm looking at the DLL project using depends.exe and notice that the DLL depends on wsock32.dll. How can I statically link it so that it doesn't depend on wsock32.dll? ...