Hi all,
I am getting this error "Command /usr/bin/codesign failed with exit code 1" when compiling the build i kept the source to "Device 3.1.3"
Please help me out
Thanks
In test.hs, I have:
doubleMe x = x + x
In ghci, I type:
Prelude> :l test
[1 of 1] Compiling Main ( test.hs, interpreted )
Ok, modules loaded: Main.
*Main> doubleMe 9
<interactive>:1:0: Not in scope: `doubleMe'
*Main>
Why? How to fix?
I have a file I am compiling in C++ in which I wish to have a string whose value is the contents of a file at the time of compilation.
In other words, I'd like to #include the file but have that be inside double quotes.
How can I do this in C++?
Now what if that file contains double quotes as part of its text, how do I get those escaped?
Is there a third party library to detect the use of a Java 1.5 library when compiling with a 1.5 compiler with -source 1.4 and -target 1.4? I could use a 1.4 rt.jar in the bootclasspath however I hope there is a better way. To be used, for example, to fail the compile/build if a newer library is used.
I want to get some settings I store in the registry, and if they differ from a #define I want to redefine it, could I do it this way?:
#define DEFINED_X "testSetting"
void LoadConfig()
{
regConfigX = some value previusly stored in the registry;
if(regConfigX!=DEFINED_X)
{
#undef DEFINED_X
#define DEFINED_X regConfigX
}
}
I tought #define was used only when compiling, would this code work when running the compiled exe?
I used code:blocks as the C++ IDE on Windows. I switched to netbeans 6.8 (with C/C++ plugin, MinGW, MSYS) recently, because netbeas have the nice feature of "checking syntax errors when typing" (same as working on Java or PHP projects).
But the painful thing is that, it takes 2 seconds to compile a simple hello world project in netbeans. Any trick to make it as fast as code:blocks, or at least make the compiling time no more than 0.5 second?
So here's a snippet of my code.
void RoutingProtocolImpl::removeAllInfinity()
{
dv.erase(std::remove_if(dv.begin(), dv.end(), hasInfCost), dv.end());
}
bool RoutingProtocolImpl::hasInfCost(RoutingProtocolImpl::dv_entry *entry)
{
if (entry-link_cost == INFINITY_COST)
{
free(entry);
return true;
}
else
{
return false;
}
}
I'm getting the following error when compiling:
RoutingProtocolImpl.cc:368: error: argument of type bool (RoutingProtocolImpl::)(RoutingProtocolImpl::dv_entry*)' does not matchbool (RoutingProtocolImpl::*)(RoutingProtocolImpl::dv_entry*)'
Sorry, I'm kind of a C++ newb.
Hi guys,
I'm importing from two jar's twitter4j-2.0.10.jar and mysql-connector-java-5.1.10-bin.jar, I'm running the code on a server but it's not letting me. I get a..
Streamer.java:9: package twitter4j does not exist
import twitter4j.StatusDeletionNotice;
^
error when compiling. I know this has something to do with getting java to recognise my custom jar's but I don't know how to get java to "see" them.
Any ideas?
I use Emacs v. 22 (the console version, either remotely with PuTTY or locally with Konsole) as my primary text editor on Linux. It takes a while to load up each time I start it though, probably almost a second, although I never timed it. I tend to open and close Emacs a lot, because I'm more comfortable using the Bash command-line for file/directory manipulation and compiling.
How can I speed up the start-up time?
Hi,
when compiling some projects on linux terminal, I get usually a long output consisting of a lot of information. Usually this information is MONOCHROME. I wonder if bash can be modified somehow, so in all outputs or in some specific outputs (like from Makefile, etc) I can get different colors dependeing on, for instance:
make[1]: Leaving directory
or
g++ -DHAVE_CONFIG_H -I.
etc.
Thanks
Recently I opened a .dll file produced by Visual Studio 9 while compiling a native C++ DLL project and was surprised to see the "This program cannot be run in DOS mode" text near the beginning.
Why have this text in .dll files?
I'm compiling a C program for a MIPS embedded system.
GCC keeps sticking in stuff like __do_global_dtors_aux, frame_dummy, __do_global_ctors_aux.
How can I avoid that?
How do i change the following statement so it accepts any type instead of long? Now here is the catch, if there is no constructor i dont want it compiling. So if theres a constructor for string, long and double but no bool how do i have this one line work for all of these support types?
ATM i just copied pasted it but i wouldnt like doing that if i had 20types (as trivial as the task may be)
public static explicit operator MyClass(long v) { return new MyClass(v); }
In Solaris, gcc gives me
implicit declaration of function `getopt'
when compiling
#include <unistd.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
getopt(1,argv,"");
return 0;
}
The man page for getopt says something about including unistd.h or stdio.h, however even though I'm inluding both I still get this warning. Is this normal? Is using functions that aren't explicitly declared common in Unix development?
i'm working j2me with netbeans platform and i had a problem while i was trying to read a XML file and i added the library kxml.zip to my project's libraries and i used some of it's functions, there r no errors or red lines in the code, but the problem is that i cant run the project cos it come up with errors while compiling and all these errors are on the kxml functions, so any on can help me through this cos i really dont know what to do to make it run properly
im trying to load an assembly nunit created in Monodevelop
Im using the software NUnit Test Case Code Generator for create unit testing
http://www.codeproject.com/Articles/28461/NUnit-Test-Case-Code-Generator
After compiling the project in MonoDevelop, loading file .dll of the proyect in Nunit Test case generator the following error appears:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Can you help me?
Previously in Matlab Stateflow 7.1 all variables and functions had to be included before they can be referred to in the state diagram or else it would throw an error when you tried to parse the diagram.
But now in 7.7 it doesn't catch those kinds of errors. Its still compiling the diagram because it catches other syntactic errors.
Am I missing an option somewhere? Can this be turned on?
Hi,
I am basically working on unix and c programming.
i want to start learning Pro*c on unix.
Is there any good online tutorial which will help me start writing simple programs in pro*c and compiling those Pro*c files.?
Thanks in advance for your help.
i am compiling a c++ file in python code using this os.system("rc.cpp") and then os.system("./a.out") . I would like to pass a command line argument to the rc file . how do i do it?
I have one sample code which get SEL from current object,
SEL callback = @selector(mymethod:parameter2);
And I have method like
-(void)mymethod:(id)v1 parameter2;(NSString*)v2 {
}
Now I need to move mymethod to another object, say myDelegate.
I have tried:
SEL callback = @selector(myDelegate, mymethod:parameter2);
but appears not compiling.
Thanks.
Some of the GNU library code can be have enhanced debugging if the flag _LIBC is set. While using -D_LIBC when compiling gives the error message
"/usr/include/gnu/stubs.h:7:3: #error Applications may not define the macro _LIBC"
So how do you define this variable?
So, I'm working in eclipse were everything compiles and runs correctly. However, when compiling under ant for the build server, A large number of tests fail with a NoSuchMethodError saying:
class A implements B
interface B extends C
C requires method getSyncID() // standard getter for an int field.
A.java contains getSyncID()
A.class contains getSyncID()
and yet the Error is still thrown.
Does anyone know how the hell this could happen? how to fix it.
is there some way to do databinding with linq2SQL or EntityFramework using "typed links" to the bound property?
Public Class Form1
Dim db As New MESDBEntities 'datacontext/ObjectContext
Dim bs As New BindingSource
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
bs.DataSource = (From m In db.PROB_GROUP Select m)
grid.DataSource = bs
TextBox1.DataBindings.Add("Text", bs, "PGR_NAME")
TextBox1.DataBindings.Add("Text", bs, db.PROB_GROUP) '**<--- Somthing like this**
End Sub
End Class
I'd like to have type checking when compiling and the model changed.
in recent weeks, i am not able to build my visual studio 2008 project in release mode.
i am using the same old project and the same source file, but when compiling on release mode, visual studio hangs on the linking stage. i am using c++ and win32 SDK
how did it happen and what should i do to resolve this?