 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
ffelagund
Joined: 16 Mar 2006 Posts: 14
|
Posted: Thu Mar 16, 2006 9:54 pm Post subject: Problems compiling with VSC++2005 |
|
|
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: | 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! |
|
| Back to top |
|
 |
ffelagund
Joined: 16 Mar 2006 Posts: 14
|
Posted: Fri Mar 17, 2006 2:13 am Post subject: |
|
|
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! |
|
| Back to top |
|
 |
ZMaster
Joined: 02 Sep 2005 Posts: 29
|
Posted: Mon Mar 20, 2006 9:35 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|