Hi,
i'm required to work on GRETA Regular Expression Library, provided by Microsoft Research. I was unable to compile and run the sample program, when used cl.exe provided with Visual Studio 2008. It gave some errors like
D:\greta\greta-2.6.4>cl /EHsc num_match.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 fo...
Hello:
I am using Visual Studio 2005's cl.exe compiler. I call it with a bunch of /I /D and some compilation/optimization flags (example: /Ehsc).
I have two compilation scripts, and both differ only in the /I flags (include directories are different). All other flags are the same. These scripts produce different object files (and not j...
Not sure what's going on here.
I have an Windows console app written in C. When I run it from within VS2008, it runs fine. If I run it from the cmd.exe prompt, it crashes, usually in malloc(). I am guessing it is a race condition due to a mismatched CRT library.
The app is simple.
It calls into the WinHttp layer to send a GET reque...
I have a simple C DLL that exposes functions from a static library. The DLL compiles without errors and I can run DUMPBIN on it to see the exports. However, when I attempt to load it with DllImport in C#, it says this:
System.DllNotFoundException: Unable to load DLL 'ei.dll': The specified module could not be found. (Exception from H...
When I use Visual Studio for a C++ application, it generates a cl.exe command line with an /FD option.
But I can't find that option in the compiler documentation
Is it a legacy option? what does it do?
...
I'm trying to build a wrapper library with VC++'s compiler.
ErlDriver.c
#define __WIN32__
#define DLL_EXPORT __declspec(dllexport)
#include "erl_driver.h"
DLL_EXPORT int _driver_output(ErlDrvPort port, char *buf, int len) {
return driver_output(port, buf, len);
}
build.bat
cl /I%ERL_DRIVER_H% /LD /MD ErlDriver.c
When I attem...
If I compile the source for a C-language DLL with CL.exe, how do I set the file properties including File version Product name, Product version, Copyright and so on, so that I can view these properties in Windows Explorer?
In a .NET application written in C#, I could do this with assembly attributes like [assembly: AssemblyVersion("1...
I'm having a weird problem with running cl.exe that has me stumped. In a large VS2008 solution consisting of C/C++ projects, I have one project that runs some scripts to do some extra processing. The project consists of a pre-build event, which calls a Perl script (ActiveState Perl is on the machine). This Perl script then calls cl.ex...
These days I'm working on a VB.NET application which can be used to edit, compile and run C programs. Can someone tell me how I can call a cl.exe process from within my VB program and also that how do I run the program in the console widow itself.
Presently I have only the editor ready. With that one can type in a program and save it wi...
I was making a VB.NET application that can be used to edit, compile and run C programs. I used the Process.StartInfo.RedirectStandardOutput property. But I'm unable to redirect it to a textbox, since it is not of the string type.
How do I redirect the output coming from the cl.exe process to my textbox?
...
Hi all,
my first question on stackoverflow!!
I'm usgin the last NANT version: 0.90
How do i specify the lib names using the task?
Example: how do i link with the gtest.lib?
Morover i have a curisoity: why NANT doesn't allow an external property file?
Example:
It would be great if one of the developer answers.
Is there a ratio or is ...
HI All
I am using MS C++ compiler cl.exe at command line to build my projects. The list of directory that must be included with /I is huge. I don't want to include this big huge list for each file I need to compile.
Do you know a way to set the list of folders to be included by default so that these will not appear at the command line ...
It seems as if cl.exe would wrongly send the compiler errors to stdout instead of stderr.
This behavior seems to be a bug and the only workaround (I could think of) it to redirect stderr and stdout but this makes is impossible to monitor the compile progress.
Is this a bug?
Are there any workarounds?
...