Re: Cygwin - linker errors - __assert, __itob and __ftol
C S wrote: gcc -D__int64=long long -shared -I\C:\Apps\Java\jdk1.6.0_05\include -I\C:\Apps\Java\jdk1.6.0_05\include\win32 -I\c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win -L\c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win myFile.cpp -o libShapeData.dll c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\shpopen.obj c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\dbfopen.obj the errors i get are: Warning: .drectve '-defaultlib:LIBC' - unrecognized Warning: .drectve '-defaultlib:OLDNAMES' - unrecognized Warning: .drectve '-defaultlib:LIBC' - unrecognized Warning: .drectve '-defaultlib:OLDNAMES' - unrecognized c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\shpopen.o:shpopen.c (.text+0x1485):undefined reference to __assert You can't mix and match objects like that. Those objects compiled by MSVC expect to be linked with the MSVCRT runtime, and here you're trying to link them against the Cygwin runtime. That's the cause of the linker errors. You can't do that. Every object needs to be consistent in the runtime that it was compiled against. So either you need to build everything against MSVCRT (i.e. gcc -mno-cygwin or using MSVC) or you need to build everything against Cygwin. But you can't do some with one and some the other. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin - linker errors - __assert, __itob and __ftol
C S wrote: i did not know about gcj. i guess i missed that somehow? thanks for the tip. my command line right now is: gcj -D__int64=long long -shared -I C:\Apps\Java\jdk1.6.0_05\include -I C:\Apps\Java\jdk1.6.0_05\include\win32 -I C:\Users\usmsci\My Documents\shapefiles\shapelib-1.2.10\shapelib-1.2.10 -I C:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win -L c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win fileName.cpp -o libShapeData.dll c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\shpopen.o c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\dbfopen.o the error i get is: gcj: cannot specify -D without --main what do i need to do to remedy this? thanks!!! This cygwin list may not accept discussions about gcj specifics which might be handled better on the gcc-help list. I'm not expert enough to explain why --main may be required when making a .dll, but I guess it wants to know the entry function. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Permission Denied
hi guys, here's THE thing i installed cygwin with tar, make and perl as Administrator. then i created virtual user root in /etc/passwd copy of Administrator user in Windows uid 0 and there was already root group in /etc/group gid 0. Now the problem is that when i logon as administartor (as root in cygwin) and try to un-tar, gunzip any file or even try to install any perl module with cpan, it always exit with error like cannot change permission uid 1000, gid 1000 or cannot change permission uid 501, gid 20 and many other error like these. and what i see is that there is no user or group with these uid and gid in passwd and group file, not even any virtual user. need help Explore your hobbies and interests. Go to http://in..promos.yahoo.com/groups/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Cygwin - linker errors - __assert, __itob and __ftol
Tim Prince wrote on 30 May 2008 23:48: C S wrote: gcj -D__int64=long long -shared -I C:\Apps\Java\jdk1.6.0_05\include the error i get is: gcj: cannot specify -D without --main might be handled better on the gcc-help list. I'm not expert enough to explain why --main may be required when making a .dll, but I guess it wants to know the entry function. This is not your average -D option, then. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin - linker errors - __assert, __itob and __ftol
thanks for the tip Brian. i thought that i had tried to -mno-cygwin option before but maybe i did not. i have a script file set up now with that command option: $g++ -mno-cygwin -D__int64=long long -shared -I C:\Apps\Java\jdk1.6.0_05\include -I C:\Apps\Java\jdk1.6.0_05\include\win32 -I C:\Users\usmsci\My Documents\shapefiles\shapelib-1.2.10\shapelib-1.2.10 -I C:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win -L C:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win com_radiancetech_dss_DataGathererShapeFileReader_DataGathererShapeFileReader.cpp -o libShapeData.dll C:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\shpopen.obj C:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\dbfopen.obj errors i get now are: Warning: .drectve '-defaultlib:LIBC' - unrecognized Warning: .drectve '-defaultlib:OLDNAMES' - unrecognized Warning: .drectve '-defaultlib:LIBC' - unrecognized Warning: .drectve '-defaultlib:OLDNAMES' - unrecognized fu01.o:(.idata$2+0xc): undefined reference to '_libmsvcrt_a_iname' fu04.o:(.idata$2+0xc): undefined reference to '_libmsvcrt_a_iname' undefined reference to '__nm___itob' Info: resolving __itob by linking to __imp___itob(auto_import) is there possibly another option that i need to add to the command line? thanks again for the help...!! chad On Sat, May 31, 2008 at 6:26 AM, Brian Dessent [EMAIL PROTECTED] wrote: C S wrote: gcc -D__int64=long long -shared -I\C:\Apps\Java\jdk1.6.0_05\include -I\C:\Apps\Java\jdk1.6.0_05\include\win32 -I\c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win -L\c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win myFile.cpp -o libShapeData.dll c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\shpopen.obj c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\dbfopen.obj the errors i get are: Warning: .drectve '-defaultlib:LIBC' - unrecognized Warning: .drectve '-defaultlib:OLDNAMES' - unrecognized Warning: .drectve '-defaultlib:LIBC' - unrecognized Warning: .drectve '-defaultlib:OLDNAMES' - unrecognized c:\Users\usmsci\My Documents\shapefiles\shapelib128_bin_win\shpopen.o:shpopen.c (.text+0x1485):undefined reference to __assert You can't mix and match objects like that. Those objects compiled by MSVC expect to be linked with the MSVCRT runtime, and here you're trying to link them against the Cygwin runtime. That's the cause of the linker errors. You can't do that. Every object needs to be consistent in the runtime that it was compiled against. So either you need to build everything against MSVCRT (i.e. gcc -mno-cygwin or using MSVC) or you need to build everything against Cygwin. But you can't do some with one and some the other. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Snapshot - 2008-05-30
I tried out snapshot 2008-05-30 and I got the following messages when getting into cygwin: bash: /usr/bin/tr: No such file or directory bash: /usr/bin/sed: No such file or directory bash: /usr/bin/tty: No such file or directory If I use RXVT, I got another pop up screen with the message: Huh? No /etc/fstab file? Using default root and cygdrive prefix... At times, it hang at exit from RXVT after the logout message. I have to kill the second popup screen to clear things up. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsh from linux to windows2003 server
First off, http://cygwin.com/acronyms/#PPIOSPE. Not only will you get access to more expertise than any one person can provide, but your query and the answers to it will be archived on the web for everyone to see. On Fri, 30 May 2008, Xiao Qing Liu wrote: Sir: I meet a issue: rsh 46.0.98.17 -l admin e:/batch_files/1.bat I got the log: connetion refused note: local machine is linux targe machine is window 2003 server Do you know how I can resolve the issue? Best Regards, Liu Xiaoqing IT Specialist - CRM,GBS,IBM CHINA [EMAIL PROTECTED] Mobile: (86)15901643739 Office: (86-21)63262288-6188 There isn't enough information in your message to determine the cause of the error. It could be anything from sshd misconfiguration to an interfering external application. Please read and follow http://cygwin.com/problems.html for instructions on how to provide more details. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Snapshot - 2008-05-30
On Sat, May 31, 2008 at 01:26:35PM -0600, ERIC HO wrote: I tried out snapshot 2008-05-30 and I got the following messages when getting into cygwin: bash: /usr/bin/tr: No such file or directory bash: /usr/bin/sed: No such file or directory bash: /usr/bin/tty: No such file or directory If I use RXVT, I got another pop up screen with the message: Huh? No /etc/fstab file? Using default root and cygdrive prefix... At times, it hang at exit from RXVT after the logout message. I have to kill the second popup screen to clear things up. Sounds like you're not really familiar with the 1.7.x series of cygwin. You do have to create an /etc/fstab file if you want to use 1.7.x. Without that it doesn't know where to find things like /usr/bin. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Snapshot - 2008-05-30
I did not know that the latest snapshot is for 1.7.x series of cygwin. Anyway, I created /etc/fstab and I don't have the 3 messages on finding things like /usr/bin. I also don't have a pop-up window on no /etc/fstab file. But after I get into rxvt and entering the following commands: pwd cd /cygdrive/c cd ~ ps vi .vimrc exit It always hang after the logout message ( I tried the above sequence 4 times) I have to close the rxvt window to clear it up. Thanks. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/