Log in

View Full Version : MS releases a free C++ compiler


wize_one
11-08-2005, 08:54 AM
see http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=126606&SiteID=1 for more details.

mods, move or delete if you want-need to.. i happened to come across this and thought i would share

stefann
11-08-2005, 11:35 AM
FOR 1 YEAR!!!!! If you REALLY need a free Windows C/C++(god forbid) compiler get MingW.

EDIT: I was wrong sorry, I gotta get my hands on these.... C#, VB.NET, ASP.NET, C++(.NET), screw MSSQL, but still, woohooo.

Cisyouc
11-08-2005, 02:36 PM
I agree. Get MinGW. :)

fathernitwit
11-08-2005, 03:37 PM
Get MinGW... then try to get eqemu to work under it... :)

Belfedia
11-08-2005, 08:35 PM
Yes GNU/GPL power :)

stefann
11-09-2005, 07:35 AM
Get MinGW... then try to get eqemu to work under it... :)
Hey, also, if you cant compile it nativley on MingW, you can compile it on Cygwin and it will compile a Windows Binary, but using the Linux libraries, basically Cygwin is a POSIX 'emulation' layer(acuatlly, exactly what it is), so anything you can compile on Linux can be compiled through it, but at a ~1/3 hit on performance, or you can try Services for Unix, but whatever. Just FYI. Actually, I should make a how-to to compile EQEMU under MingW and Cygwin....steal my idea if you want, will save me the time :P

Cisyouc
11-09-2005, 11:51 AM
anything you can compile on Linux can be compiled through it,Not -everything-...

stefann
11-09-2005, 03:05 PM
Not -everything-...
(most) everything, is that better???

Belfedia
11-09-2005, 08:46 PM
Don't stop your work stefann
I think eqemu compilation on free C++ is a good thing for all eqemu's user
All don't want go on linux for mod her source...
And Microsoft's stuff is expensive (And piracy is a crime :p).

fathernitwit
11-10-2005, 02:25 AM
my post was not clear enough apparently... I have tried quite a bit to get emu to build and work under cygwin, and have not had any success... but carry on.

heres what I have checked in as a makefile.cygwin:


HCC=$(shell ccache -V 2>/dev/null)
ifneq (,$(findstring version,$(HCC)))
CC=ccache gcc
else
CC=gcc
endif

LINKER=gcc
MYSQL_FLAGS=-I/cygdrive/c/mysql/include
MYSQL_LIB=-L/cygdrive/c/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv
DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2
#try commenting out the following three lines to disable embedded perl
PERL_FLAGS=perl -MExtUtils::Embed -e ccopts
PERL_LIB=perl -MExtUtils::Embed -e ldopts
DFLAGS+=-DEMBPERL -DEMBPERL_PLUGIN -DHAS_UNION_SEMUN
WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wno-deprecated -Wcomment -Wcast-align
COPTS=$(WFLAGS) -O -g -pg -march=i686 -pipe -D_GNU_SOURCE -DINVERSEXY -DFX -DZONE $(DFLAGS) $(MYSQL_FLAGS)
LINKOPTS=-rdynamic -L. -lstdc++ -ldl -lpthread $(MYSQL_LIB)

all: zone

include .depend

include makefile.common

.depend depend:
echo $(SF) "" | sed -e 's#.obj/#../common/#g' -e 's/\.o/.cpp/g' | \
xargs gcc -MM $(COPTS) `$(PERL_FLAGS)` >.depend

stefann
11-10-2005, 06:14 AM
Did you make sure to install the compilers and libraries needed by EQEMU under Cygwin???
EDIT: When I get home(at school, 14 years old, Jr. High sux) I'll try to see what I can do compiling it under CYGWIN, I have a 3 day weekend and all the time I want on my mom's 1.2GhZ AMD PC.

wize_one
11-10-2005, 06:25 AM
Don't stop your work stefann
I think eqemu compilation on free C++ is a good thing for all eqemu's user
All don't want go on linux for mod her source...
And Microsoft's stuff is expensive (And piracy is a crime :p).

the link is to a FREE C++ from microsoft.. IF you get it in the next year

stefann
11-10-2005, 07:27 AM
the link is to a FREE C++ from microsoft.. IF you get it in the next year
ehem 'free' and 'microsoft' don't really mix, besides, if you REALLY want to learn/compile C++ code NOT written for M$'s .NET framework, it's not even worth it. Besides MingW is the direct Windows port of GCC(GNU(GNU's Not Unix) Compiler Collection) and is for one Open Source(GPL!! GPL!!!), still FREE(Bah, I know M$'s is, but whatever), AND on top of all of that its around a 20-50mb download last time I checked, compared to up to 600MB for Visual Studio Express Edition C++. Maybe I'm a Micro$oft basher, oh wait, I AM!!! I ONLY, ONLY, use Windows for my gaming, everything else can be done just as well(if not better) in Linux so *middle finger* Microsoft. Anyways getting off-topic, but yeah, why use a bloated Microsoft C++ compiler instead of a port of the best free C/C++ compiler in histroy.

stefann
11-10-2005, 11:25 AM
Fathernitwit, the Wiki seems out of date, I can't get the code off the CVS tree. What branch do I need to use?