Problems compiling with VSC++2005

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ffelagund
Posts: 14
Joined: Thu Mar 16, 2006 9:44 pm
Contact:

Problems compiling with VSC++2005

Post by ffelagund »

Hello,

First of all hello to everybody. This is my first post in this forum. I'm trying to develop using VC++ 2005, following the instructions at http://forums.ps2dev.org/viewtopic.php?t=2493 (actually, I've installed the MSVC_PSP_Wizard), but I'm unable to compile anything. I get some errors, like if the VS were trying to compile with its own compiler instead of with g++. This should be something simply to solve, but I'm lost. Please dont kill me if this is too obvious :)


Code: Select all

Errors:
Performing Makefile project actions
Converting test1.vcproj...
g++ -G0 -Wall -fno-exceptions -fno-rtti -c ./main.cpp -o ./main.o
g++: unrecognized option `-G0'
In file included from ./main.cpp:5:
./main.h:5:23: pspkernel.h: No such file or directory
./main.h:6:24: pspdisplay.h: No such file or directory
./main.h:7:22: pspdebug.h: No such file or directory
./main.cpp:7: error: expected constructor, destructor, or type conversion before '(' token
./main.cpp:7: error: expected `,' or `;' before '(' token
./main.cpp:8: error: expected constructor, destructor, or type conversion before '(' token
./main.cpp:8: error: expected `,' or `;' before '(' token
make: *** [main.o] Error 1
Build log was saved at "file://g:\pspdev\test1\test1\Debug\BuildLog.htm"
test1 - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
 
PROGRAM:
//**************************************************************************
//		PSP Project: 'test1' - main.cpp
//**************************************************************************
 
#include "main.h"
 
PSP_MODULE_INFO("test1", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
 
int main(int argc, char **argv)
{
	//START HERE:  
	return 0;
}
Thanks for the help.
I dont know... flight casual!
ffelagund
Posts: 14
Joined: Thu Mar 16, 2006 9:44 pm
Contact:

Post by ffelagund »

I've fixed the problem adding these lines to the msvc-cygwin-make.bat file
set path=%path%;g:/cygwin/usr/local/pspdev/bin
set PSPSDK=g:/cygwin/usr/local/pspdev/sdk

Now I have to know how configure cygwin to force the execution of those two lines when a login is performed, no matter from where, to avoid having to add manually these lines in each project :)

Thanks.
I dont know... flight casual!
ZMaster
Posts: 29
Joined: Fri Sep 02, 2005 10:14 pm

Post by ZMaster »

ffelagund wrote: Now I have to know how configure cygwin to force the execution of those two lines when a login is performed, no matter from where, to avoid having to add manually these lines in each project :)
Go to X:\cygwin\home\[USER]\ and edit the file .bashrc which will automatically be executed everytime you login with [USER]

I added something like this to the end of .bashrc, for example:

export PATH="/usr/local/pspdev/bin:$PATH"
export PSP_MOUNTDIR="/cygdrive/f"
export PSP_REVISION=1.50

Then 'cd' to your project directory from within your cygwin shell and try to 'make' the project. If this works, you should now be able to compile from inside MSVC++.

Cheers.
Post Reply