Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Support for Microsoft Visual Studio .NET 2003?

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Support for Microsoft Visual Studio .NET 2003? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Support for Microsoft Visual Studio .NET 2003? - May 26, '04, 4:05:56 PM   
philmil

 

Posts: 8
Joined: May 26, '04,
Status: offline
Hello -

I am attempting to compile a native windows program using Imakefiles and SFU 3.5 I see that there is support for Microsoft Visual C++ Version 4, but I am having trouble getting this to work with the latest C compiler from Microsoft . Any suggestions or help would be greatly appreciated.

Thanks
Phil
Post #: 1
RE: Support for Microsoft Visual Studio .NET 2003? - May 26, '04, 4:21:15 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
Did you install MSVC before of after the SFU install?
Did you install both the Interix and GNU SDK's?

By "having trouble" could you be a lot more specific please?
(i.e. error messages, actions/responses).

(in reply to philmil)
Post #: 2
RE: Support for Microsoft Visual Studio .NET 2003? - May 27, '04, 11:30:07 AM   
philmil

 

Posts: 8
Joined: May 26, '04,
Status: offline
I installed MSVC after SFU. Some of the problems I initially had were due to the fact that I did not have the environment set up from the vcvars32.bat. After I got that figured out, Microsoft has named all of the .h files with mixed case - i.e. Windows.h so when I do a make depends (The real reason for using Imake), it can not find "windows.h" due to the lower case convention. If I include "Windows.h", then it finds the Windows.h file, but can not find the included file imm.h (included from windows.h) due to the fact that it is now Imm.h.

(in reply to Rodney)
Post #: 3
RE: Support for Microsoft Visual Studio .NET 2003? - May 27, '04, 11:44:05 AM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
I'm not sure what your question is. Or how it relates to Interix and/or SFU.

The Interix SDK provides some compiler tools (e.g /bin/cc) which are wrappers that invoke the MSVC compiler executables BUT these tools create Interix binaries - not native Windows binaries.
And you certainly cannot use gcc that ships with SFU.

You can use the Interix imake (or make) utils but you'll have to configure them to invoke the MSVC executables directly and you'll have to make sure that you use the proper syntax for these MSVC/Windows executables.

The vcvars.bat file is useful if you are using the cmd.exe shell. It doesn't really help you if you are using an Interix shell. (/bin/ksh, /bin/csh).

Bottom line: if you're building Windows native apps you cannot use /bin/cc or gcc.
However there is a "wcc" script that is like cc but knows how to build Windows native apps. This script is on the interopsystems ftp site.

(in reply to philmil)
Post #: 4
RE: Support for Microsoft Visual Studio .NET 2003? - May 27, '04, 11:50:16 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
Sorry, I didn't read the first post closely enough.
You are attempting to build a Win32 program from the Interix/Unix environment.

The Interix environment is a Unix environment. The [c]cc/c89 scripts
drive MSVC to build Interix binaries, not Win32 binaries. There is not a mixing of
header files between the two, different environments.

You can drive the creation of a Win32 program using the Interix/Unix tools such
as make. Instead of using cc there is another script named wcc
(yeah, the 'w' is for Win32). You can grab a copy of wcc from the ftp site:
"ftp://ftp.interopsystems.com/beta/interix35/bin/wcc".

This is what you're looking to do, right?

(in reply to philmil)
Post #: 5
RE: Support for Microsoft Visual Studio .NET 2003? - May 27, '04, 12:04:04 PM   
philmil

 

Posts: 8
Joined: May 26, '04,
Status: offline
Thanks - that is one of the things I am looking for. I do not think that would solve my make depends problems with the mixed case included files names though.

(in reply to Rodney)
Post #: 6
RE: Support for Microsoft Visual Studio .NET 2003? - May 27, '04, 2:09:50 PM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
Using case sensitive tools (Interix) in a case insensitive environment (Windows) is no fun.
You are better off looking for another UNIX on Windows tools package that is designed to work in the Win32 world. (ie MKS Toolkit, Cygwin, Msys, UWin, ...)

(in reply to philmil)
Post #: 7
RE: Support for Microsoft Visual Studio .NET 2003? - May 28, '04, 9:09:14 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: online
Actually if you are using SFU on XP then you will have noticed at
installation that it asked about setting the case-sensitive registry
entry. If you're on XP setting it for case-insensitive might be
enough for you to get things going. Just an idea.

(in reply to markfunk)
Post #: 8
RE: Support for Microsoft Visual Studio .NET 2003? - Jun. 1, '04, 11:29:36 AM   
philmil

 

Posts: 8
Joined: May 26, '04,
Status: offline
Thank You!! It took 3 things to get it working, the wcc script (Thank you Mark), the case setting for SFU under XP (Thank you Rodney), and the creation of a .cshrc that provided the same environment variables and path information as the vcvars32.bat file did for the command prompt compiling.

Thanks again!!

(in reply to Rodney)
Post #: 9
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Support for Microsoft Visual Studio .NET 2003? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.063