|
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.
|
|
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.
|
|
My professor defined this in the .h file
void list_map(INTLIST* list, void (*f)(void *)); /*Applies a function to each element of the list */
I wrote the function like this:
void list_map(INTLIST* list, void (*f)(void *)) { INTLIST* pTemp=NULL; if (list...
Answer Snippets (Read the full thread at stackoverflow):
The prototype of list_sort() is:
void list_sort(INTLIST.
Please compile it with a C compiler.
Since *f points to the list_sort , the method signature does as C++? .
And the warning generated by your compiler.
|
Ask your Facebook Friends
|
Hi, this is a really basic question. I've been learning C++ and thus far I have only used the standard library. I have been including things like <iostream> and with no problems. Now I want to use Apache Xerces, so I've installed it on my machine...
Started by ghallio on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You the path specified by the /I ....
On my rather old Windows system, Xerces directories, you can add a -I option to the command line to tell the compiler to look there also.
Multiple start points for the compiler to start looking.
|
|
I'm trying to disassemble a C/C++ DLL, and have made some progress, but I would like to create my own C DLL with the same function the original exports, and compare disassemblies.
Visual Studio adds to much crap, and when I remove the crap and build my...
Started by ProfK on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
The best part of using this approach instead other IDE is that you do configure it to use the Visual Studio ....
For Windows Development, all you on the source files (*.h, *.c).
GCC + any text editor such as VIM is a very light alternative .
|
|
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 .
|
|
A program written in Visual C/C++ 2005/2008 might not compile with another compiler such as GNU C/C++ or vice-versa. For example when trying to reuse code, which uses windows.h, written for a particular compiler with another, what are the differences ...
Started by Rob Kam on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
On the Linux, about it's c++ compliance....
Any other C compiler on Windows is likely to provide it.
You can get it independently from Visual Studio.
That MSVC C compiler brings to the table: it's C-specific embodiment of Windows API.
|
|
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 making a C++ program.
One of my biggest annoyances with C++ is its supposed platform independence.
You all probably know that it is pretty much impossible to compile a Linux C++ program in Windows and a Windows one to Linux without a deluge of cryptic...
Started by Unknown on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Unless you used platform specific libraries, it should are using are built to be... .
For some reason, my Window's C++ compiler wouldn't acceptCompile it in Window and again in Linux.
Limit under Windows, amongst other problems.
|
|
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.
|