| | |
Compiling linux based static library in Windows
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2009
Posts: 15
Reputation:
Solved Threads: 0
Hi all,
I have a library built in C++ targeted for linux platform. The authors suggested that with some minor changes, it can be compiled in windows as well.. This library in turn uses the mathematical library called miracl, which does support VC++ and I was also able to build it there.
My problem is how to port this linux based library to windows?
I found a open source software known as cmake for building the source files. Is it the correct tool for my problem?
Regards,
Abhi
I have a library built in C++ targeted for linux platform. The authors suggested that with some minor changes, it can be compiled in windows as well.. This library in turn uses the mathematical library called miracl, which does support VC++ and I was also able to build it there.
My problem is how to port this linux based library to windows?
I found a open source software known as cmake for building the source files. Is it the correct tool for my problem?
Regards,
Abhi
•
•
Join Date: Sep 2009
Posts: 15
Reputation:
Solved Threads: 0
0
#4 Oct 20th, 2009
Hi,
I tried code::blocks with minGW compiler.
As soon as I compiled a program, it gave multiple syntax errors, as if it's not recognizing the syntax at all.
What am i doing wrong?
also, this program called headers from other library which I have already build in VS 2005 and have the library file for it. Should I be including it here in Code::Blocks?
Regards,
Abhijit
I tried code::blocks with minGW compiler.
As soon as I compiled a program, it gave multiple syntax errors, as if it's not recognizing the syntax at all.
What am i doing wrong?
also, this program called headers from other library which I have already build in VS 2005 and have the library file for it. Should I be including it here in Code::Blocks?
Regards,
Abhijit
•
•
Join Date: Sep 2009
Posts: 15
Reputation:
Solved Threads: 0
0
#5 Oct 21st, 2009
Hi,
I have tried many methods, like cmake and minGW, but each time I try compiling the code in Windows, errors like in braces and basic syntax are thrown.
I never worked much with unix based C++.
Is there a compiler which I can use to compile linux based C++ code successfully in Windows environment?
I have tried many methods, like cmake and minGW, but each time I try compiling the code in Windows, errors like in braces and basic syntax are thrown.
I never worked much with unix based C++.
Is there a compiler which I can use to compile linux based C++ code successfully in Windows environment?
0
#6 Oct 21st, 2009
Its surprising that you are not able to compile it in windows. If you take a library compiled in *NIX, it would not run on windows but usually the code compiles fine both on windows n *nix, apart from specific system calls if you have them. braces like error are not an issue of unix or windows. Its a code issue.
edit: sorry, didnt read the whole thing, you have a library i guess. plz ignore my post in that case.
edit: sorry, didnt read the whole thing, you have a library i guess. plz ignore my post in that case.
Last edited by Agni; Oct 21st, 2009 at 7:48 pm.
thanks
-chandra
-chandra
![]() |
Similar Threads
- News Story: Presto! It's a New Netbook. (Pay-Per-Click Advertising)
- News Story: Mac Users Prefer Linux Over Windows (Windows NT / 2000 / XP)
- News Story: 10 Reasons to Use Linux-Based Virtualization (Troubleshooting Dead Machines)
- News Story: 5 Linux-based Virtualization Companies to Watch (Linux Servers and Apache)
- News Story: 5 Things I Wish Linux Had (Windows Software)
- News Story: 10 Linux-based Gadgets Just in Time for Christmas (Linux Servers and Apache)
- News Story: Henry Ford Would Have Hated Linux (Windows Vista and Windows 7)
- News Story: API Connects Your Test Lab to the Cloud (Linux Servers and Apache)
- win32 gcc cross compiling for linux target (C)
Other Threads in the C++ Forum
- Previous Thread: Help with C++ files?
- Next Thread: Help: Code Sum/Factorial
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






