Richard,
Ethereal do works with Visual C++ .NET! Actually, there are only 2
modifications you have to perform.
In the "config.nmake" file, replace the LOCAL_LDFLAGS variable with this
one:
LOCAL_LDFLAGS=/DEBUG /NODEFAULTLIB:libc /NODEFAULTLIB:msvcrt
/DEFAULTLIB:msvcrtd
This fixes the "unresolved symbols" errors.
The second modification is not due to a problem in Ethereal. Instead, it
concerns ZLIB. The release provided on the Ethereal's Web site is not
compatible with the Ethereal compiled with .NET. Thus, you have to
compile ZLIB with VS .NET:
- Download the latest source (1.1.4) from http://www.gzip.org/zlib/
- copy sources\nt\Makefile.nt and sources\nt\zlib.dnt to sources\
- From sources\, run "nmake -f Makefile.nt"
When done, you must of course point the 'ZLIB_DIR' var (in
"config.nmake") to the ZLIB source directory and Ethereal must use the
zlib.dll file you've just compiled.
Then, Ethereal will compile with .NET without problem.
Good luck.
Best regards
Laurent
-----Original Message-----
From: Richard Urwin [mailto:RUrwin@xxxxxxxxxxxxxx]
Sent: Thursday, May 15, 2003 10:07 AM
To: ethereal-dev@xxxxxxxxxxxx
Subject: [Ethereal-dev] Buiding on VC .NET solved yet?
Has anyone managed to build ethereal on Visual C .NET? I get lots of
unresolved symbols which are libc functions with a __imp__ prefix.
Someone mentioned this back in September, but I can not now see a reply.
ISTR it was said at the time that building Ethereal on .NET hadn't been
checked-out yet and to use VC6.
There is a thread in the curl archives saying that winmm.lib is required
to solve this problem. Unfortunately it doesn't seem to solve it for
Ethereal.
So before I load up VC6, does anyone know how to get it to work with
.NET?
--
Richard Urwin, Software Design Engineer
Schenck Test Automation
Braemar Court, 1311b Melton Road, Syston, UK.
rurwin@xxxxxxxxxxxxx
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev