News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Same sources

Started by andre.goncalves, January 06, 2017, 01:53:58 AM

Previous topic - Next topic

andre.goncalves

How can I use the same sources in projects 32 and 64?

Thanks for the help.

CLR

Hello.

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


TimoVJL

#2
In smaller projects you can use this Add-In in poide64.exe.
May the source be with you

andre.goncalves

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?

TimoVJL

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.


May the source be with you

andre.goncalves

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.