Programming :: How Switches Controlling Code Compilation

Aug 28, 2009

I had been working on a CPP code for sometime now, without being aware that some parts of its code, especially security related were not being compiled. Problem was like my product did not work for SSL mode. On analysis, I found that some part of CPP codes inside a switch(ENABLE_SSL_LIBRARY)were not getting compiled at all. And also that this gets set when we do newgrp crypto command on the box. This left me without lots of doubts. I wanted to understand how these switches work and if this switch was propreitary to my code or something related to Linux.

My questions now are:
1. Switches like the one mentioned above, are they user defined, for my particular code or are they related to Linux/GCC or makefiles?
2.If a user can define such switches to control code compilation, then need to know the concepts/procedures behind it. How is it done ?

Kindly excuse if these are very very basic. But since I could not get proper stuffs on google, I thought I should ask some experts here who could either explain me or point me to appropriate resources (links of articles / tutorials)

View 1 Replies


ADVERTISEMENT

Programming :: Missing Stropts.h(apue Code Compilation In Fedora11)?

Feb 10, 2010

I want to compile the the source code given in a well known unix programming book(stevens) .I downloaded the codes but unable to build it ,giving me an errorerror: stropts.h: No such file or directoryI don't know what to do....I am using fedora 11 latest gcc in the system.
I also try to include the search path which include a file -I./usr/include/xulrunner-sdk-1.9.1/system_wrappers but itI open the header file and the definition is there #include_next<strops.h>so ultimately there is not the original file

View 5 Replies View Related

Fedora :: Compilation Of Vlc Source Code?

Dec 13, 2009

how vlc source code can be compiled?

View 2 Replies View Related

General :: Code Compilation For ATOM Processor

Jan 19, 2010

Just I need some clarification. Is there any different form compilation is for Intel ATOM processor? Its same like all other intel processors right? Or it has any different type of compilation should be followed for Intel atom processor?

View 5 Replies View Related

General :: Code Compilation For ATOM Processor?

Jan 19, 2010

Just i need some clarification. Is there any different form compilation is for Intel ATOM processor? Its same like all other intel processors right? or it has any different type of compilation should be followed for Intel atom processor?

View 1 Replies View Related

Ubuntu :: Fatal Error: Iostream.h: No Such File Or Directory Compilation Terminated While Compiling C++ Code

Dec 9, 2010

whenever i am trying to compile a c++ program i am getting the following error sample.cpp:1: fatal error: iostream.h: No such file or directory compilation terminated

View 1 Replies View Related

Programming :: Controlling Application Running On A Virtual Desktop?

Jun 19, 2009

I need to run an application on a virtual desktop (let say desktop #2) and control it via another app running on the root desktop (desktop #1). That would include screen capture and mouse movements. So basically I capture the application window from desktop #2, scrape it and then click on buttons via my app on desktop #1. Anyway you got the idea.Now my big question is: is that doable ? and if so what's the best language to do it ?

View 1 Replies View Related

Programming :: Counting Context Switches On Thread?

Jun 10, 2010

I have done some searching around the internet and this site, but I haven't found a good way to count the context switches on a thread in a c++ program I am running. I need to know if it get swapped off of a CPU for correct timing.

View 4 Replies View Related

Programming :: RedHat 8.0 - Monitoring Context Switches

Apr 22, 2011

As a part of a school project I am working on monitoring context switches. I'm working on redhat 8.0, kernel version 2.4.18-14 and for some reason I keep getting unclassified reasons which causing context switches from a process to itself. I am trying to determine each context switch, what was the reason that causes it, whether time slice ended, or yielded, or went for waiting or returned from waiting or parameters changed or task ended to task forked or any possible reason.

But all the time I find that the only switches that I cannot determine the reason happens from a process to itself, all this unrecognized switches from process to itself happens only on interactive processes, and sometimes the need_resched flag is on and sometimes is off. What could possibly cause a context switch from a process to itself? Can a returning of a process with a lower (higher by number) priority from waiting cause a context switch?

View 2 Replies View Related

Programming :: Way To Find The Task Switches From Gdb Coredump?

Mar 15, 2011

I have a coredump file which gives stacktrace. But I dont know which thread executed or any task switches happened before a crash happened from a given thread. is there anyway to find out.

View 3 Replies View Related

Programming :: Using Switches - Allow Program To Run In Debug Mode

Nov 23, 2010

I want to allow my program to be able to run in DEBUG mode. i.e., I want to be able to run ./program, and I want to be able to run ./program -v to show all the debug output. How do I go about setting up something like that?

View 3 Replies View Related

Programming :: Compilation Errors In C?

Sep 7, 2010

When compiling a C program i get the following errors.How do i modify the code to remove these warning messages?

1) "test.c", line 614: warning #4212-D: mismatch between character pointer
types "unsigned char *" and "char *"
p_data = m_lines[p_text_idx];

[code]....

View 2 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Programming :: C++ Compilation And Attach In Tcl Interpreter?

Mar 25, 2011

i am working with ad hoc network but the problem is not getting any good documentation of how to compile c++ code then how to add the code into Tcl intrepreter and how to work with make file. i want to run my own algorithm using c++ and then want to incorporate it into tcl interpreter and then want to run.

View 2 Replies View Related

General :: ARM Multicore Programming And Its Compilation Method ?

Apr 8, 2010

I wish to know that which gcc release version had support on ARM 9 multicore system by using pthread library for its parallelizing method on ecos rtos.I assume that the compiler that support the single ARM 9 processor will surely compile its multicore version also.But i need a clarification about it.It is good if you give a article or provide a suitable link on the ARM multicore programming and its compilation method

View 1 Replies View Related

Programming :: Dereferencing Pointer Error During Compilation?

Sep 29, 2010

I have got following code from a book:

Code:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <stdlib.h>
#define PORTNUMBER 12345

[Code]...

View 6 Replies View Related

Programming :: Bizarre Compilation Error / Was Not Declared In This Scope?

Feb 26, 2010

Well, either it's bizarre or I'm going crazy. Here is a student's very simple linked-list implementation.

The problem is simply that when the list class is named "link", g++ complains:

Code:
testlink.cc: In function int main():
testlink.cc:5: error: expected `;' before l
code....

View 5 Replies View Related

Programming :: Makefile: Change Compilation Flags By Changing Target Name

Nov 12, 2010

I'd like to create a target named "debug" or something similar which will use some special optimization flags useful when debugging (for example -ggdb). At the moment my makefile is neat (which I like) and looks like

Code:
SRC = $(wildcard *.cxx)
OBJ = $(SRC:.cxx=.o)
INCDIR = -I.
LIB = -lm

[Code]....

View 2 Replies View Related

Programming :: Connecting Signals In Anjuta / Gtkmm - Errors During Compilation

May 24, 2010

i got this simple example of a code, its basicly Anjuta Gtkmm empty project. [URL] and trying to connect button signal to a function at line 67, however i receive errors during compilation, and i dont know what's wrong error output [URL]

View 1 Replies View Related

Programming :: Perl Compilation Error "Cannot Locate Unicode/String.pm In @INC"

Mar 9, 2010

I get an error when typing perl build.pl: Code: Cannot locate Unicode/String.pm in @INC

View 11 Replies View Related

Programming :: Conversion From Infix To Postfix And Compilation Of Postfix For Eval

May 11, 2010

I was trying to write a graph plotting program with c++. I need to convert the infix expression from user to postfix expression for quick evaluation. However, the evaluation of postfix is kind of interpreted, and thus kind of slow for evaluating huge number of values. Say if I plot an implicit function the penalty is quite huge. Is there a way that I can compile the infix expression from my running graph plotting application for high speed evaluation.

View 6 Replies View Related

Programming :: UNIX Ostringstream Compilation Using Xcode On OS X: Ostringstream Cmd

Jul 24, 2011

The following declaration is presenting a compilation problem using Xcode on OS X: ostringstream cmd; The error is as follow: Implicit instantiation of undefined template 'std::basic_ostringstream<char, std::char_traits<char>,std::allocator<char> >; The exact same code will compile and run on Linux - same imports and everything. What could be causing the issue?

View 2 Replies View Related

Programming :: Use SSE(2,3) In C/C++ Code?

Jun 6, 2011

I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?

View 12 Replies View Related

Programming :: Code That Will Never Execute

May 23, 2011

Is there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.

View 6 Replies View Related

Programming :: GLX Code Won't Run Anymore?

Jan 14, 2011

I went to compile some "oldish" glx code. The code compiles great but when I go to run it I get a crash. With X Error of failed request: BadMatch (in .....running ddd causes my whole system to lock up when I call the glx function XOpenDisplay. After a few attempts I thought I'd download a demo from the net, I choose nehe opengl tutorial 2, I compiled and ran but even on a net tutorial I get the same error

./lesson02
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!

[code]....

View 1 Replies View Related

Programming :: Translating Code To OSX?

Jul 20, 2011

I have the following code:

Code:
#!/bin/bash
function dx {

[Code].....

So essentially, it finds dx files, sorts them by numbers at the beginning, then performs the dx function I made (loops over all of the #-protein.dx and #-water.dx files).

It works fine when I'm running it on Ubuntu 11.04. However, when I try to run it on OSX, I get the following error:

Code:
mh320m01:DA_R02 janickij$ ./MOD_Loop_Tuber_Script.sh
find: illegal option -- t
find: illegal option -- y

[Code]....

View 9 Replies View Related

Programming :: How To Share Code With Others

Jan 5, 2010

I work as a linux sysadmin, and are now and then developing scripts that might be of use for others. I'd like to be able to share these, and for less trivial projects maybe create a central repository or something that others may upload updates/patches to etc.

View 10 Replies View Related

Programming :: How To Combine ASM And C Code

Apr 10, 2010

I have a little test program consisting of a NASM source file and a C source file.How do I turn them into a single program?

Code:
section .data
msg db 'Hello, World!', 10

[code]....

View 14 Replies View Related

Programming :: Three Lines Of Code - What Do They Actually Mean

Feb 23, 2011

whichever source code I go through I find these three lines of code written what do they actually mean and what is their function?

[code]...

View 6 Replies View Related

Programming :: How To Use Bash Variable In C Code?

Feb 16, 2011

I want to write a c program with some shell scripts.Now For a simple C program. I am Setting a variable called val2 in bash, now I want to use bash variable val2 in C code. How do I do that?The above doesn't work (coz its spawning a different memory space and when shell script ends the variable dies with it as per my research but how do I keep them in same memory space)Also Is there any Good reference where they teach how to integrate C and Bash Together?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved