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
7 9368
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.
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
Hi,
Can I know where you copyied the 'unistd.h' file.
And also try both syntax. -
#include "unistd.h"
-
or
-
#include <unistd.h>
-
All the best...
Regards,
M.Sivadhas.
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.
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.
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
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
| |