473,386 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to convert GNU C files to visual C

3
hi,
I want to know how to convert gnu c code to visual c, the coding is a huge one, congaing folders which contain some header files and .C files. should i make the same folder structure in visual c environment?, should i do coding changes.?
thank you
Nov 20 '06 #1
7 9368
sivadhas2006
142 100+
Hi,

First try to add the GNU C files into the visual C++ environment.
If you faced any linking problems just post it.

We can try to solve that.

Regards,
M.Sivadhas.
Nov 20 '06 #2
buff
3
Hi,

First try to add the GNU C files into the visual C++ environment.
If you faced any linking problems just post it.

We can try to solve that.

Regards,
M.Sivadhas.
thank you Sivadhas, so I tried to include the files, there are folders too, should i create the folders with the same name? also there is another problem unistd.h header file is not in visual C++ so i download the code and include it but it also failed.
"Cannot open include file: 'unistd.h': No such file or directory
Error executing cl.exe."

Above error is displayed, so please help me on this.

Thank you
Nov 21 '06 #3
sivadhas2006
142 100+
Hi,

Can I know where you copyied the 'unistd.h' file.
And also try both syntax.

Expand|Select|Wrap|Line Numbers
  1. #include "unistd.h"
  2. or
  3. #include <unistd.h>
  4.  
All the best...

Regards,
M.Sivadhas.
Nov 21 '06 #4
Banfa
9,065 Expert Mod 8TB
there is another problem unistd.h header file is not in visual C++ so i download the code and include it but it also failed.
This is not a good idea, the functions declared in that file will likely not be present in VC++. All you are doing is shifting the error from the compiler to the linker and it is actually harder to locate linker problems.

Better would be to edit the code to remove the places were unistd.h is included and then deal with the compiler errors that result.
Nov 21 '06 #5
horace1
1,510 Expert 1GB
thank you Sivadhas, so I tried to include the files, there are folders too, should i create the folders with the same name? also there is another problem unistd.h header file is not in visual C++ so i download the code and include it but it also failed.
"Cannot open include file: 'unistd.h': No such file or directory
Error executing cl.exe."

Above error is displayed, so please help me on this.

Thank you
as a first step you could use Cygwin (which includes unistd.h and much of its functionality) under Windows. However, this is not recommended for long term development (rather like running Windows programs using wine under Linux).

You can then identify the Unix specific functions and remove them if possible.
Nov 21 '06 #6
buff
3
thank you all who are trying 2 help me. but i still couldn't complete it. there is a makefile in the c source files(i don't know much about it, i only know that it helps to compile the code in GNU c ) how can i deal with that in visual c++

thank you
Nov 21 '06 #7
Banfa
9,065 Expert Mod 8TB
thank you all who are trying 2 help me. but i still couldn't complete it. there is a makefile in the c source files(i don't know much about it, i only know that it helps to compile the code in GNU c ) how can i deal with that in visual c++

thank you
Ignore it, just create a new Visual Studio project.

And makefiles or project files just tell the current platform how to compile and link the program. Now a lot of makefile language is common between platforms but not all of it, unless specifically desigened to be portable to another platform it is best to treat the make file as part of the platform it was designed to run on. i.e. don't run it on the new platform.
Nov 21 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: william | last post by:
I have an application that was developed in Clipper. 70 dbf files and aroud 100 ntx , I plan to move the data to Access and Mysql *.frm *.MYD and *.MYI, But I don't know how to convert the .dbf...
2
by: KevinGPO | last post by:
Just wondering if anyone knows if there are converters to convert from: MS Visual C++ 6.0 or MS Visual Studio 2003 project files into UNIX autogen/configure/make files?
0
by: Chua Wen Ching | last post by:
Hi there, I had downloaded the Java Language Conversion Assistant 2.0 from http://msdn.microsoft.com/vstudio/downloads/tools/jlca/. I had installed it and it was suppose to integrate to...
5
by: Anders | last post by:
Hi We have a rather large asp.net 1.1 project. We have considered til convert 2.0 in the near future. We have done a couple of test conversions using the build in Migration tool which pop up...
4
by: csgraham74 | last post by:
Hi, Ive posted on this previously but had no response. Basically i need to build some html using a rich text editor. Then i want to actually create an html document from this and save it to my...
1
by: Vinz | last post by:
Hello folks, After 1 evening of trying and reading a lot of (web)pages I have not succeeded in creating a .tlb file from my msoeapi.idl file. Also I'm a bit confused because some sources say...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
2
by: edw | last post by:
I want to convert rfc822 (.eml) files to MAPI (.msg) files. I do not need to log in to Outlook to retrieve the messages, since the messages have all been downloaded from the exchange server and...
1
by: lds | last post by:
I have Visual Studio 2005 Professional Edition installed with Service Pack 1. I have several solutions and projects that I have migrated from Visual Studio 2003 to 2005. In most cases the changes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.