|
Hello,
I am compiling a demo project.
The project is written for windows and linux. I have written a Makefile. However, I am not sure how to specify the platform the compiler will be compiling on.
I will be compiling on Linux.
In my source file I have...
Started by robUK on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This uses a macro for the C++ compiler, allows you to add other flags via CFLAGS"
To compile on Windows....
PATH = -I/usr/norton/include LIBS = -lntr PLATFORM = -DLINUX CXX = g++ app: *.cpp *.h Makefile ${CXX in place of braces.
|
|
Hi everyone, I am new to VC++2010 and I am trying to convert a VC6 project to a VC++2010 one.
Now I have a library that provides interfaces to a hardware and a demo program written in VC6 which shows how to use this library. I opened this demo using VC...
Started by Giovanni Dicanio MVP on
, 5 posts
by 2 people.
Answer Snippets (Read the full thread at microsoft):
But when I created a new C++ Windows Form Application and added the library....
A new C++ Windows Form Application and added the library along with its header file, the compiler VC++2010 and it converted this demo and everything goes well.
|
|
We have a large Visual Studio 2005 C++/Mfc solution, 1 project with around 1300 source files (so about 650 .h and 650 .cpp files). We also use Boost and a few other libraries (COM: MSXML, Office).
Recently, I've added a few instances of boost::multi_index...
Started by ToastedSoul on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I'd guess people have cut and pasted a bunch of headre files into a CPP file without thinking which headers they actually need... .
If 1300 files are taking THAT long to compile then you are including waaaay too many header files that are unncecessary.
|
Ask your Facebook Friends
|
I am using g++ on Ubuntu with a C++ library whose header files all happen to end in .H instead of the traditional .h.
I'd rather not modify the include directory ... otherwise I would probably just create symbolic links to .h versions of the headers.
...
Started by alberte on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
.H is one....
If I am understanding you correctly, you just need to specify the capital H in the files system.
While on Windows .h and .H files directory.
I think this is an implementation detail of the Linux file system .
|
|
Hello, so I've been programming in C++ for almost 2 years now, and the whole while I've had the pleasure of using an IDE (VS) with lovely project settings and automatic linking and the like. I've always stayed away from any external libraries which required...
Started by DeusAduro on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Wants to use the "cc" compiler to compile your program, but that compiler is not part of the Mingw what compiler to use (gcc on the next line) when compiling .c files (the original line tells it how all name the C ....
|
|
I am interested in compiling windows for Python25 support but when I
make -f Make_ming.mak gvim.exe
I get the following (_MAX_PATH undeclared) :
gcc -c -Iproto -DWIN32 -DWINVER=0x0400 -D_WIN32_WINNT=0x0400 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE...
Started by Luis on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Gvim, Cream , Portable Gvim )
If you are trying to build Python for windows, why are you not using? Any previous compiler warnings about missing includes or undefined values? Search for PATH_MAX.
|
|
I'd like my .exe to have access to a resource string with my svn version. I can type this in by hand, but I'd prefer an automated way to embed this at compile time. Is there any such capability in Visual Studio 2008?
Started by Gordon Wilson on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Antik's solution is the one....
Revision information to a .h file (I actually compare it to a saved reversion in a non-versioned file but whether you chose to do so is up to you.) This .h file (or a number of files if necessary, depending.
|
|
On Tue, 1 Sep 2009 15:01:32 +0100, "Richard Hutchinson" <richard.hutchinson@dsl.pipex.com
Just got this Email. I'm not a C coder myself, but I'm sure other's will
find it useful -
Hello,
I'm working on the C compiler for Vectrex and repackaged...
Started by Richard Hutchinson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at omgili):
Gilles
http://www.alternative.
For now, all demos run correctly under vecx.
compiler and this one.
|
|
On Wed, 1 Apr 2009 07:17:01 +0000 (UTC), "torres stephane" <stephane496@msn.com
Hello,
I need to create a c++ file which uses a matlab algorithm to calculate some points and I need to send the results ( arrays) of the algoritm from matlab to the...
Started by torres stephane on
, 15 posts
by 5 people.
Answer Snippets (Read the full thread at omgili):
Parsing file "H:\data\essai_matlab_c++\eigmatrix.m"
(Referenced from: "Compiler....
Parsing file "H:\data\essai_matlab_c++\addmatrix.m"
(Referenced from: "Compiler from: "Compiler Command Line").
Tmp_5884_14827_5884.auth'.
|
|
On Thu, 8 Apr 2010 14:11:47 +0200, david sastre <d.sastre.medina@gmail.com
Hello,
Yesterday (still under1.7.3) I had a "compiler not found" and a
"compiler cannot create executables" errors while trying to build some
standard apps, i.e. nginx.
...
Started by david sastre on
, 16 posts
by 8 people.
Answer Snippets (Read the full thread at omgili):
-I./src -I./gl)
COLLECT_GCC_OPTIONS='-std=gnu99' '-....
Post the errors with ***)
$ gcc -std=gnu99 -c -DHAVE_CONFIG_H -Ded_PROGRAM=\"ed\"
-DENABLE_MERGE -I.
When you run it, you haven't got the
compiler and associated stuff installed.
|