Hi,
Is there a easy solution to port GCC code to windows?
Can it be done in VC++ without much change in the code?
I tried DJGPP, but its missing few API's(rather functions),
like message queues etc.
Anyone have an idea?
Amish.
P.S. lots of C related questions are being put up recently.
Is it allowed here? ;-)
Satya wrote:
>Try cross-compiling with gcc.
How? You mean gcc on Linux can make windows EXE?
>>I tried DJGPP, but its missing few API's(rather functions),
>>like message queues etc.
>
>Try Cygwin.
Sorry I forgot to mention Cygwin. I checked it out too. But
it doesnt support msg queues either. Or did I miss something?
Or they are named differently?
Anyway thanks a lot for help.
Amish.
Hello,
Does anyone know what graphics libraries / X windows libraries we
can to use if we want to do 2D graphics in C (under Linux/Unix). I cannot
use OpenGL :(...
Bye,
Surya
__ __
|__ |__| |/
__|urya |rakash |\ompalli
Email - kompalli(a)cse.buffalo.edu
Phone - Home - (716) 862 0366
Office - (716) 645 5084 x 19
Website - http://www.cse.buffalo.edu/~kompalli/
Hi Shahazad,
Sorry that I didn't replied promptly(..I was offline for three days).
You have to enable routing on the server.(If you are using linuxconf for configuration then you can do it by checking the checkbox in the Routing/Gateways option).
You really don't have to enable ip_forwarding.
The dns of the win98 client will be the ip of your proxy server(If you are running nameserver on the same machine and if you are not then the dns ip's provided by your ISP will work fine.)
So in any case the dns order will be the proxyserver IP followed by the IPs provided by the ISP.
Reply back if have any relative problem.
Mahesh Gharat
mahesh_gharat(a)rediffmail.com
On Fri, 28 Sep 2001 shahazad(a)linuxplanet.nu wrote :
> Thanx for the info mahesh,
> well i have coupla things more to clear up,
>
> [1] do i have to enable ip_forwaring in /proc
> [2] what should be in the dns of the win98 client.
>
> thanx in advance
> cheers~
> </shahazad>
On 1 Oct 2001, Philip Tellis wrote:
>> (**) | |-->Device "Generic VGA compatible"
>^^^^^^^^^^^^^^^^^^^^^^
>Which display card do you have? It is set to generic VGA here, which is
>definitely not what you want.
I'm afraid I don't know. Is there any utility that can auto-detect
this for me?
>In your /etc/X11/XF86Config-4 file, search for DefaultColorDepth, change
>it from 16 to 8, and read the XF86Config man page.
I changed from 16 to 8 the DefaultColorDepth as well as the ColorDepth
for the corresponding Display subsection. However, I am still having
problems.
When I type "startx" at the command prompt, the monitor power light
switches off and it behaves like it is on a power-saving mode.
When I type Ctrl-Alt-1 to get back to the text mode, here is the
output on the screen:
-----------------------------------------------------
XFree86 Version 4.0.3 / X Window System
(protocol Version 11, revision 0, vendor release 6400)
Operating System: Linux 2.2.17-8smp i686 [ELF]
Module Loader present
(==) Log file: "/var/log/XFree86.0.log", Time: Tue Oct 2 20:17:07 2001
(==) Using config file: "/etc/X11/XF86Config-4"
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (??) unknown.
(==) ServerLayout "Anaconda Configured"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Generic VGA compatible"
<snip>
(II) VGA: Generic VGA driver (version 4.0) for chipsets: generic
(--) Chipset generic found
(**) VGA(0): Depth 8, (--) framebuffer bpp 8
(==) VGA(0): RGB weight 666
(==) VGA(0): Default visual is PseudoColor
(==) VGA(0): Using gamma correction (1.0, 1.0, 1.0)
(==) VGA(0): videoRam: 64 kBytes.
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
compiled for 4.0.3, module version = 0.1.0
(==) VGA(0): Virtual size is 320x200 (pitch 320)
(**) VGA(0): Built-in mode "
70.2 Hz (VScan)
(==) VGA(0): DPI set to (75, 75)
<Snip>
X Error of failed request: 86
Major opcode of failed request: 51 (X_SetFontPath)
Serial number of failed request: 9
Current serial number in output stream: 11
Xlib: extension "RENDER" missing on display ":0.0".
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
DCOPServer up and running.
Xlib: extension "RENDER" missing on display ":0.0".
Error while initializing the sound driver:
device /dev/dsp can't be opened (Permission denied)
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
QSocketNotifier: Multiple socket notifiers for same socket 6 and type read
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
Xlib: extension "RENDER" missing on display ":0.0".
-----------------------------------------------------
After the last message there is no further output and I have
to press Ctrl-C to get back the command prompt.
Is "RENDER" some sort of file that I need to download?
Thanks.
Parul Mathur
> HELO.
> when i say......
> MAIL FROM:someone@some.other.domain
> ....it responds that the sender's address should resolve.....what
> does that mean???
> i thought because it sends mail ......it should accept all sender
> addresses!!!
> At the same time.....if i say
> MAIL FROM:some_other_login_on_my_linuxbox@localhost
> the mail is sent....even if "some_other_login_on_my_linuxbox" knows
> nothing about it!!!
When you give MAIL FROM: someone(a)some.other.domain, the domain
some.other.domain should be resolved by your local DNS or the DNS of your
ISP. When you use some_other_login_on_my_linuxbox@localhost, sendmail knows
that its a valid domain.
Regards,
Mayur Joshi
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
I recently upgraded to the PCQ Linux 7.1 distribution. When I typed
"startx" at the command line, the X server could not start.
The errors recorded in the /var/log/XFree86.0.log are as follows:
----------- /var/log/XFree86.0.log -------------------
XFree86 Version 4.0.3 / X Window System
(protocol Version 11, revision 0, vendor release 6400)
Release Date: 16 March 2001
Operating System: Linux 2.2.17-8smp i686 [ELF]
Module Loader present
(==) Log file: "/var/log/XFree86.0.log", Time: Sun Sep 30 23:26:06 2001
(==) Using config file: "/etc/X11/XF86Config-4"
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (??) unknown.
(==) ServerLayout "Anaconda Configured"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Generic VGA compatible"
<snip>
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
<snip>
(II) Setting vga for screen 0.
(EE) VGA(0): Given depth (16) is not supported by this driver.
(II) UnloadModule: "vga"
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error:
no screens found
-----------------------------------------------
I think the depth has to be adjusted to 8 instead of 16.
How do I do this?
Parul Mathur
--
"This e-mail message may contain confidential, proprietary or legally
privileged information. It should not be used by anyone who is not the
original intended recipient. If you have erroneously received this message,
please delete it immediately and notify the sender. The recipient acknowledges
that ICICI or its subsidiaries and associated companies (including ICICI Bank),
"ICICI Group", are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views expressed in this
message are those of the individual sender and no binding nature of the
message shall be implied or assumed unless the sender does so expressly with
due authority of ICICI Group. Before opening any attachments please check them for viruses and defects."
Hi !
First of all, this is a dedicated Linux group... but with so many Unix
gurus, with lots of hope I'm posting this SMS (Save My Soul)...
I have 20 X 2 HDDs... I installed Win2K on first on a dual boot basis
with Lin 7.1 (the PCQ one - I guess youv'e got the same)... I left 1 GB as
FAT16 for sharing the data between the two... The second HDD is lying
idle...
I tried installing Sun Solaris 8 on the 2nd HDD... on the beginning of the
intallation itself (before scanning for hardware devices), it returned
this error :
-----------------
Warning : ACPI Tables not in Reclaim Memory
(next screen)
Warning : Resource Conflict - both devices are added
Non - ACPI device : PNP0C01
Memory : 9FC00 - 9FFFF, FEE0000-FEF7FFF, FEF8000-FEFFFFF,
FEC0000-FEDFFFF, FFF00000-FFFFFFF
ACPI device : PNP0C01
Memory : 9FC00-9FFFF, E0000-EFFFF, 40FFC00-FEFFFF
--------------
After this, all the hardware devices are scanned and no conflict sign is
marked against each device found... it proceeds as usual and comes at the
screen where it's about to start the installation with the option "Solaris
Jumpstart" after which it's supposed to show the starting dialog box of
the installation... but the screen goes white with a stationery cursor
blinking at the top and the keyboard stops responding...
Strangely, Linux or Windows do not report any such conflict and moreover,
Solaris 7 itself did'nt give any such error and got installed normally...
In the BIOS the ACPI setting has value S1 (which as the BIOS help consumes
more power but is safe...) I tried after changing it to S3, but with same
outcome...
I'll be grateful it you guys can shed some light on this...
Regards,
---------------------------------------------------------------------------
Soumen Dass, Junior Officer, Data Centre Mumbai Telephone : (022)490-6520
--
"This e-mail message may contain confidential, proprietary or legally
privileged information. It should not be used by anyone who is not the
original intended recipient. If you have erroneously received this message,
please delete it immediately and notify the sender. The recipient acknowledges
that ICICI or its subsidiaries and associated companies (including ICICI Bank),
"ICICI Group", are unable to exercise control or ensure or guarantee the
integrity of/over the contents of the information contained in e-mail
transmissions and further acknowledges that any views expressed in this
message are those of the individual sender and no binding nature of the
message shall be implied or assumed unless the sender does so expressly with
due authority of ICICI Group. Before opening any attachments please check them for viruses and defects."