|
[C Help] Jumping from PSP to PC
|
| Author |
Message |
ZiNgA BuRgA
Smart Alternative
Posts: 16,798.4923 Threads: 1,130
Joined: 19th Jan 2007
Reputation: -1.13303
E-Pigs: 429.3222
|
RE: [C Help] Jumping from PSP to PC
Senseito URΩBΩROS Wrote:For example, I have libpng used in my draft code, but how do I use it through Windows dev environments?
Compile libpng for Windows or just grab a binary and change your linker options to use the library (or copy the (probably .lib) files to the compiler's lib directory).
http://www.google.com.au/search?q=libpng...=firefox-a
Senseito URΩBΩROS Wrote:I tried Cygwin (I know I'm an idiot for trying that for Windows apps) so lets just forget about that......
If you're using POSIX stuff, it might actually be easier to use Cygwin. (it's a PSP app, not POSIX I believe)
Senseito URΩBΩROS Wrote:Building libraries in a Windows environment makes dlls out of libraries doesn't it?
If it's dynamically linked. If it's statically linked, it'll be put into the EXE. If you download precompiled binaries, it'll probably be dynamically linked.
Senseito URΩBΩROS Wrote:How do I go about changing PSP include code to code that would work for compiling a program for Windows?
You should be able to straight remove them. Then you determine what functions you need to fix up.
Haven't actually used cygwin or MiniGW myself so can't say anything about the rest.
(This post was last modified: 17/09/2009 03:08 AM by ZiNgA BuRgA.)
|
|
| 17/09/2009 03:07 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 16,798.4923 Threads: 1,130
Joined: 19th Jan 2007
Reputation: -1.13303
E-Pigs: 429.3222
|
RE: [C Help] Jumping from PSP to PC
Senseito URΩBΩROS Wrote:And I assume you can use that method for Dev-C++?
I fail to see why it shouldn't.
|
|
| 17/09/2009 03:43 AM |
|
Senseito7
★ What? ★
Posts: 16,633.8880 Threads: 1,009
Joined: 3rd Apr 2007
Reputation: 14.29926
E-Pigs: 370.2384
|
RE: [C Help] Jumping from PSP to PC
ZiNgA BuRgA Wrote:Senseito URΩBΩROS Wrote:And I assume you can use that method for Dev-C++?
I fail to see why it shouldn't.
 alright I'll give it a try when I get home.
What about libraries not compiled to Binaries?
How would I go about compiling them?
|
|
| 17/09/2009 04:00 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 16,798.4923 Threads: 1,130
Joined: 19th Jan 2007
Reputation: -1.13303
E-Pigs: 429.3222
|
RE: [C Help] Jumping from PSP to PC
You just need to have the files with your project (dunno if your IDE will require some compiler/linker option changes). Will probably need to change your #include directives to reflect this too.
(This post was last modified: 17/09/2009 04:06 AM by ZiNgA BuRgA.)
|
|
| 17/09/2009 04:05 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 16,798.4923 Threads: 1,130
Joined: 19th Jan 2007
Reputation: -1.13303
E-Pigs: 429.3222
|
RE: [C Help] Jumping from PSP to PC
Senseito URΩBΩROS Wrote:ZiNgA BuRgA Wrote:You just need to have the files with your project (dunno if your IDE will require some compiler/linker option changes). Will probably need to change your #include directives to reflect this too.
so LIBs get compiled at the same time as the Application? Unusual... but I'll have a look at it.
No, precompiled files get linked.
This is the process of how C/C++ compilation generally works:
source code » preprocessor » compiler » linker » executable
executable » link with DLLs » process
|
|
| 17/09/2009 04:42 AM |
|
Senseito7
★ What? ★
Posts: 16,633.8880 Threads: 1,009
Joined: 3rd Apr 2007
Reputation: 14.29926
E-Pigs: 370.2384
|
RE: [C Help] Jumping from PSP to PC
ZiNgA BuRgA Wrote:Senseito URΩBΩROS Wrote:ZiNgA BuRgA Wrote:You just need to have the files with your project (dunno if your IDE will require some compiler/linker option changes). Will probably need to change your #include directives to reflect this too.
so LIBs get compiled at the same time as the Application? Unusual... but I'll have a look at it.
No, precompiled files get linked.
This is the process of how C/C++ compilation generally works:
source code » preprocessor » compiler » linker » executable
executable » link with DLLs » process
I see what you're saying
but I as asking about Libraries that HAVEN'T been precompiled.
|
|
| 17/09/2009 04:44 AM |
|
Assassinator
...
Posts: 6,744.2815 Threads: 176
Joined: 24th Apr 2007
Reputation: 8.53695
E-Pigs: 138.6963
|
RE: [C Help] Jumping from PSP to PC
|
|
| 17/09/2009 04:47 AM |
|
User(s) browsing this thread: 1 Guest(s)