<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[using pre processor defines in .pro]]></title><description><![CDATA[<p dir="auto">Hi All,<br />
in my standard makefile project I use some defines to stop some sections of code being built.  However I need to translate over to qt and add to my .pro.  In my makefile I used</p>
<pre><code>DDEFS =-DWITH_NONAMESPACES -DWITH_OPENSSL

.....

then 
all:
	$(CC) $(CPFLAGS) $(CPPFLAGS) $(DDEFS) $(DINCDIR) $(SOURCE) $(DLIBDIR) -o $(PROGRAM)  $(DLIBDIR) $(LIBS)
</code></pre>
<p dir="auto">How can I do this in qt with .pro? Thanks</p>
]]></description><link>https://forum.qt.io/topic/67012/using-pre-processor-defines-in-pro</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 18:17:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/67012.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 May 2016 09:10:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to using pre processor defines in .pro on Fri, 13 May 2016 09:25:01 GMT]]></title><description><![CDATA[<p dir="auto">Got it through trial and error, you don''t use -D in qt</p>
<pre><code>DEFINES += WITH_NONAMESPACES WITH_OPENSSL
</code></pre>
]]></description><link>https://forum.qt.io/post/327182</link><guid isPermaLink="true">https://forum.qt.io/post/327182</guid><dc:creator><![CDATA[tony67]]></dc:creator><pubDate>Fri, 13 May 2016 09:25:01 GMT</pubDate></item><item><title><![CDATA[Reply to using pre processor defines in .pro on Fri, 13 May 2016 09:15:52 GMT]]></title><description><![CDATA[<p dir="auto">Should add I've tries</p>
<pre><code>DEFINES += -DWITH_NONAMESPACES -DWITH_OPENSSL
</code></pre>
<p dir="auto">but get the following errors</p>
<pre><code>&lt;command-line&gt;:0: error: macro names must be identifiers
&lt;command-line&gt;:0: error: macro names must be identifiers
</code></pre>
]]></description><link>https://forum.qt.io/post/327181</link><guid isPermaLink="true">https://forum.qt.io/post/327181</guid><dc:creator><![CDATA[tony67]]></dc:creator><pubDate>Fri, 13 May 2016 09:15:52 GMT</pubDate></item></channel></rss>