Pelles C forum

Pelles C => General discussions => Topic started by: andre.goncalves on January 06, 2017, 01:53:58 AM

Title: Same sources
Post by: andre.goncalves on January 06, 2017, 01:53:58 AM
How can I use the same sources in projects 32 and 64?

Thanks for the help.
Title: Re: Same sources
Post by: CLR on January 06, 2017, 02:03:09 AM
Hello.

- Create 2 projects. One for 32 and the other for 64.
- Add the same sources to the projects.

Title: Re: Same sources
Post by: TimoVJL on January 06, 2017, 10:53:22 AM
In smaller projects you can use this (http://forum.pellesc.de/index.php?topic=4467.msg16682#msg16682) Add-In in poide64.exe.
Title: Re: Same sources
Post by: andre.goncalves on January 06, 2017, 10:31:02 PM
I want to use a single sources folder in one project 32 and another 64.
The IDE does not allow you to create two projects in the same folder so I have to create two separate projects. I want to then access a single folder of sources.
I tried to do this but IDE is not allowing you to include sources from another folder other than the project.

Something I did not see?
Title: Re: Same sources
Post by: TimoVJL on January 07, 2017, 10:19:19 AM
You can have several project files (.ppj) in same folder and in PellesC 8 project sources must be in same or folders below that folder.
Use project workspace to keep together those project files.

For example:
hello_workspace includes hello.ppj and hello64.ppj and common source for project is hello.c or src/hello.c

Problems is that target exe/dll/lib name and output folder must be different, if you don't want to build whole 32/64 project every time.


Title: Re: Same sources
Post by: andre.goncalves on January 08, 2017, 12:59:20 AM
I created in the workspace the two projects (32 and 64) renaming in ppj the outputs for output32 and output64. A sources folder that serves both projects and a folder to include by changing their project options.

This was the first time I talked to people from forums. Really enjoyed. Nice to meet you.

Thank you very much for your attention and help.