int WinMain()
function while Console apps will run fine with the standard
int main().
Subsystem setting is located: Project > Properties... > Configuration Properties > Linker > System
In win32, when you insert a USB stick it is magically detected, mounted to Letter:/, a window pops up and you can just use it. On my install of Gentoo Linux this was not so... do /dev entry would appear so I could not mount the thing
Here's what I did (Linux 2.6.x kernel btw):
emerge coldplug (install coldplug for monitoring usb)
/etc/init.d/coldplug start (start coldplug)
cd /usr/src/linux
make menuconfig
make modules modules_install (compile and install modules)
tail -n 20 /var/log/messages, you should see the device detected and assigned a SCSI device
ls /dev/sda*, if you have no entries it didn't work
mkdir /mnt/jumpdrive (create a mountpoint for the jumpdrive)
mount /dev/sda2 mnt/jumpdrive